query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Returns the last certificate in the ordered set where className = &63; and classPK = &63;. | public vn.com.ecopharma.hrm.rc.model.Certificate findByClassNameAndClassPK_Last(
java.lang.String className, long classPK,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
vn.com.ecopharma.hrm.rc.NoSuchCertificateException; | [
"public vn.com.ecopharma.hrm.rc.model.Certificate fetchByClassNameAndClassPK_Last(\n\t\tjava.lang.String className, long classPK,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public static vn.com.ecopharma.hrm.rc.model... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Assign all elements of the provided display list to a level, building the level lists as we go. | public void assignToLevel(Set displayList){
long startTime = System.currentTimeMillis();
// To improve usability of the output display, try to place longer objects toward the top of the display.
// Do this by pre-sorting the display objects by width.
List sortedDisplayList = new ArrayList(displayLis... | [
"public void populateLevelList(){\n //size anticipates a third level of gameplay, not yet implemented.\n levels = new Level[2];\n levels[0] = LevelOne.make(this);\n levels[1] = LevelTwo.make(this);\n }",
"private static void populateLevels() {\n levelList = new LinkedList();\n\n levelLi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
used to find fixer unpaid query count. | public Long findFixerUnpaidQueryCount(Integer fixerId) throws FixitException; | [
"@Query\n\tpublic int countFreeUin();",
"private int countOfQueryResults(Query query) {\n return 0;\n }",
"public String getUnSyncedCount() {\n // select (select count(*) from tbl_install where tbl_install.inst_is_sync=0 AND tbl_install.inst_user_id=21)+(select count(*) from tbl_uninstall where... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AtomicDomainSpecificEvent__NameAssignment_3" $ANTLR start "rule__AtomicDomainSpecificEvent__UponMoccEventAssignment_6" ../org.gemoc.gel.xtext.ui/srcgen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:8499:1: rule__AtomicDomainSpecificEvent__UponMoccEventAssignment_6 : ( ruleMoccEvent ) ; | public final void rule__AtomicDomainSpecificEvent__UponMoccEventAssignment_6() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:8503:1: ( ( ruleMoccEvent ) )
... | [
"public final void ruleEvent() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:410:2: ( ( ( rule__Event__NameAssignment )... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The quantity the location has that are pending. | @ApiModelProperty(value = "The quantity the location has that are pending.")
public Integer getPending() {
return pending;
} | [
"public BigDecimal getPendingQuantity() {\n BigDecimal matched = getMatchedQuantity();\n if ( matched==null )\n matched = new BigDecimal(0);\n return getConfirmedQuantity().subtract(matched);\n }",
"public int getPendingQty()\n\t{\n\t\treturn getBigDecimal(WorkingInformation.PEN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the diskEncryptionSetId property: ResourceId of the disk encryption set to use for enabling encryption at rest. | public ManagedClusterProperties withDiskEncryptionSetId(String diskEncryptionSetId) {
this.diskEncryptionSetId = diskEncryptionSetId;
return this;
} | [
"public String diskEncryptionSetId() {\n return this.diskEncryptionSetId;\n }",
"void setSetId(java.lang.String setId);",
"public void setScreenSetId(int screenSetId)\n\t{\n\t\tthis.screenSetId = screenSetId;\n\t}",
"public void setIdSector(Integer idSector) {\r\n\t\tthis.idSector = idSector;\r\n\t}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets new value of actionPoints | public void setActionPoints(int actionPoints) {
this.actionPoints = actionPoints;
} | [
"private void setCurrentActionPoints(int actionPoints) {\n\t\tif ((actionPoints >= 0) && (actionPoints <= maxActionPoints))\n\t\t\tcurrentActionPoints = actionPoints;\n\t}",
"public void setPointAction(String pointAction) {\n this.pointAction = pointAction;\n }",
"void setPointChange(Integer setPoint,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of BoundaryViolationException without detail message. | public BoundaryViolationException() {
} | [
"public BoundaryViolationException(String msg) {\n super(msg);\n }",
"Violation createViolation();",
"public ValidationException(ViolationException violation) {\n this(Collections.singletonList(violation));\n }",
"public BusinessException() {\n super();\n }",
"public c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of setName method, of class Weapon. | @Test
public void testSetName() {
System.out.println("setName");
String name = "";
Weapon instance = null;
instance.setName(name);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
} | [
"@Test\n public void testSetName() {\n System.out.println(\"setName\");\n String name = \"martillo\";\n Product instance = null;\n instance.setName(name);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if the given index is already locked by an other threadID than the given. | private boolean isRecordLockedByAnOtherThread(final int index,
final long newOwnerId) {
synchronized (mutex) {
return lockTable.containsKey(index)
&& lockTable.get(index) != newOwnerId;
}
} | [
"public boolean isLocked(int index){\n\t\tif(index==visits.size())\n\t\t\treturn false;\n\t\treturn locked.get(index);\n\t}",
"public boolean isLockedByToken(String lockToken);",
"private void checkIndexLocking() throws IOException {\n\t\tboolean locked = IndexReader.isLocked(getDirectory());\n\t\tif( locked ) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the given string's width when drawn, using the current text metrics. | public int getStringWidth(String text); | [
"public int getWidth(String text) {\r\n\t\treturn uFont.getWidth(text);\r\n\t}",
"int getStringWidth(final String string);",
"public double getTextWidth() {\n javafx.scene.text.Text textWidth = new javafx.scene.text.Text(text);\n textWidth.setFont(font);\n return textWidth.getBoundsInLocal(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Overloaded toString method that accpets an int to format employee payroll for commission employee | @Override
public String toString (int num)
{
String format = "Weekly pay for %s, %s employee id %s is $%.2f\n";
return String.format(format, this.getLastName(), this.getFirstName(), this.getId(), this.calculatePay());
} | [
"@Override\n public String toString() {\n // Call parent, which builds most of the string\n String employeeString = super.toString();\n\n // Append Employee Type\n employeeString += Constants.FULLTIME_STR + Constants.EMPLOYEE_TO_STRING_SEPARATOR;\n\n // Append Annual Salary\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
setHousing Set the typing of housing the animal is kept in. | public void setHousing(HousingType housing ) {
this.housing = housing;
} | [
"public void setHousingColor(String housingColor)\r\n\t{\r\n\t\tthis.housingColor = housingColor;\r\n\t}",
"public void sethp(int hp_to_set) {\n this.hp = hp_to_set;\n }",
"public HousingType getHousing( ) {\n\t\treturn housing;\n\t}",
"public void setHeating(String heat) {\r\n\t\t\theatingOption =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the modified date of this game score. | @Override
public void setModifiedDate(java.util.Date modifiedDate) {
_gameScore.setModifiedDate(modifiedDate);
} | [
"@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_esfTournament.setModifiedDate(modifiedDate);\n\t}",
"public void setModified(Date modified)\n {\n this.modified = modified;\n }",
"@Override\n public void setModifiedDate(java.util.Date modifiedDate) {\n _leagu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
collect is useful to combine a stream of events into a single event or object. In this case, we will make an ArrayList that contains all of the greek letters. | public static void main(String[] args) {
ArrayList<String> greekLetterArray = GreekAlphabet.greekAlphabetInGreekObservable()
.collect(
// What is the initial state? In this case a blank ArrayList
ArrayList<String>::new,
//... | [
"List<T> collect();",
"public void GreekChars() {\n GreekCharacter greekChar[] = new GreekCharacter[24];\n greekChars = new ArrayList<GreekCharacter>();\n ArrayList<String> charList = new ArrayList<>(Arrays.asList(\n \"Α\",\"Β\",\"Γ\",\"Δ\",\"Ε\",\"Ζ\",\"Η\",\"Θ\",\"Ι\",\"Κ\",\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compact the vector by deleting elements for which delete_cb returns true. delete_cb is a permanent callback and will be deleted. | public native void compact(DeleteCallback delete_cb); | [
"private void arrayCompact(MyArrayList myArrayList, Results results, int value) {\r\n int old_size = myArrayList.size();\r\n myArrayList.removeValue(value);\r\n myArrayList.compact();\r\n int new_size = myArrayList.size();\r\n if(old_size > new_size) {\r\n results.store... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo che setta l'idRichiesta. | public void setIdRichiesta(int idRichiesta) {
this.idRichiesta = idRichiesta;
} | [
"public void setId_richiesta(long id_richiesta);",
"public int getIdRichiesta() {\n return idRichiesta;\n }",
"public void setScreename_richiedente(String screename_richiedente);",
"public void setIdroteiro(int pIdroteiro){\n this.idroteiro = pIdroteiro;\n }",
"public void setId_trimestre(int ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the number of elements in the array 'capsule.code' for the given dimension. | public static int numElements_capsule_code(int dimension) {
int array_dims[] = { 24, };
if (dimension < 0 || dimension >= 1) throw new ArrayIndexOutOfBoundsException();
if (array_dims[dimension] == 0) throw new IllegalArgumentException("Array dimension "+dimension+" has unknown size");
re... | [
"public static int numElements_capsule_code() {\n return 24;\n }",
"public static int numElements_data(int dimension) {\n int array_dims[] = { 60, };\n if (dimension < 0 || dimension >= 1) throw new ArrayIndexOutOfBoundsException();\n if (array_dims[dimension] == 0) throw new Illegal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Grammar: link: OPENLINK href rel type CLOSELINK Example: | private Link link() {
Link link = null;
Token tok = lex.getToken();
// Expect '<link' (we know it is OK)
if (tok.getToken() != TokensId.OPENLINK) {
syntaxError(String.format("Expected '<link', found '%s'",
tok.getLexeme()), tok.getLine());
}
// Expect 'href'
tok = lex.getToken();
... | [
"LINK createLINK();",
"void openLink(Link target);",
"Link getTypeLink();",
"default String link(String link, String text) {\n return \"<\" + link + \"|\" + text + \">\";\n }",
"CharNode getLink();",
"void setHyperlink(Hyperlink link);",
"Link addLink(String href);",
"BuiltInLink createBuilt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete the max element in the BST. | public void deleteMax() {
root = deleteMax(root);
} | [
"public void delMax() {\r\n\t\troot = delMax(root);\r\n\t}",
"public void deleteMax(){//B\r\n int x = maxValue(root); //Find max and store in x\r\n delete(x);\r\n }",
"public void deleteMax() {\n if (isEmpty()) throw new NoSuchElementException(\"Symbol table underflow\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method that is called after doInBackground method has finished; closes the waitdialog; displays the loaded weather data in the weatherForecastDialog; | @Override
protected void onPostExecute(List<Weather> result) {
super.onPostExecute(result);
mWaitDialog.dismiss();
Dialog mWeatherDialog = new WeatherForecastDialog(mContext, result);
mWeatherDialog.show();
} | [
"public void populateView(String result){\n try{\n JSONObject jsonObj = new JSONObject(result);\n JSONObject main = jsonObj.getJSONObject(\"main\");\n JSONObject sys = jsonObj.getJSONObject(\"sys\");\n JSONObject wind = jsonObj.getJSONObject(\"wind\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column FreeHost_Product_VPS.HourMBin7 | public Integer getHourmbin7() {
return hourmbin7;
} | [
"public Integer getHourmb7() {\r\n return hourmb7;\r\n }",
"public void setHourmbin7(Integer hourmbin7) {\r\n this.hourmbin7 = hourmbin7;\r\n }",
"public Integer getHourmbin6() {\r\n return hourmbin6;\r\n }",
"public void setHourmb7(Integer hourmb7) {\r\n this.hourmb7 = ho... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ work: Update genre input: title, new genre output: none | public void update_genre(String str_title, String str_newGenre) {
db = helper.getWritableDatabase(); //db 객체를 얻어온다. 쓰기가능
ContentValues values = new ContentValues();
values.put("genre", str_newGenre); //page_total 값을 수정
//db.update("booklist", values, "title=?", new String[]{str_title... | [
"void changeTitle(Genre genre, String title);",
"public void setGenre(String newGenre) {\n this.genre = newGenre;\n }",
"public void setGenre(String genre);",
"public abstract void setGenre(TagContent genre) throws TagFormatException;",
"public void setGenre(String genre)\r\n {\r\n this.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Schedules a query for dynamic ImsService features. | private void scheduleQueryForFeatures(ImsServiceInfo service, int delayMs) {
// if not current device/carrier service, don't perform query. If this changes, this method
// will be called again.
if (!isDeviceService(service) && getSlotForActiveCarrierService(service)
== Subscripti... | [
"private void startDynamicQuery(ImsServiceInfo service) {\n boolean queryStarted = mFeatureQueryManager.startQuery(service.name,\n service.controllerFactory.getServiceInterface());\n if (!queryStarted) {\n Log.w(TAG, \"startDynamicQuery: service could not connect. Retrying af... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This constructor creates the UPnPBaseDriver object based on the controller and the BundleContext object. | public UPnPBaseDriver(UPnPController controller, BundleContext bc) {
this.controller = controller;
this.bc = bc;
devices = new Hashtable<>(10);
servicerefs = new Hashtable<>(10);
} | [
"public PIDSubsystem(PIDController controller) {\r\n this(controller, 0);\r\n }",
"@Inject\n public UpnpStreamerImpl(final UpnpService upnpService, final EventBus eventBus) {\n super(eventBus);\n this.controlPoint = upnpService.getControlPoint();\n }",
"public InternalInformati... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Applies only if colorSpace is a value other than follow. This field controls how the value in the colorSpace field will be used. fallback means that when the input does include color space data, that data will be used, but when the input has no color space data, the value in colorSpace will be used. Choose fallback if ... | public void setColorSpaceUsage(String colorSpaceUsage) {
this.colorSpaceUsage = colorSpaceUsage;
} | [
"public abstract Card putForcedColorCard(String color);",
"public void setColorSpace(String colorSpace) {\n this.colorSpace = colorSpace;\n }",
"public String getColorSpace() {\n return this.colorSpace;\n }",
"public void turnToCorrectColor() {\n\n String gameData = DriverStation.getIns... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleNavOpExp" $ANTLR start "entryRuleNavigationOpCallExp" InternalOCLlite.g:753:1: entryRuleNavigationOpCallExp : ruleNavigationOpCallExp EOF ; | public final void entryRuleNavigationOpCallExp() throws RecognitionException {
try {
// InternalOCLlite.g:754:1: ( ruleNavigationOpCallExp EOF )
// InternalOCLlite.g:755:1: ruleNavigationOpCallExp EOF
{
before(grammarAccess.getNavigationOpCallExpRule());
... | [
"public final EObject entryRuleNavigationOpCallExp() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleNavigationOpCallExp = null;\n\n\n try {\n // InternalDOcl.g:1896:60: (iv_ruleNavigationOpCallExp= ruleNavigationOpCallExp EOF )\n // InternalDOcl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Increases the count by super.read(b, off, len)'s return count | public int read(byte[] b, int off, int len) throws IOException {
int found = super.read(b, off, len);
this.count += found;
return found;
} | [
"public int read(byte[] b) throws IOException {\r\n int found = super.read(b);\r\n this.count += found;\r\n return found;\r\n }",
"@Override\n public int read(byte[] bytes, int offset, int count) throws IOException {\n return updateBytesRead(super.read(bytes, offset, coun... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function collects the last element of the list columnsXML | public ColumnXML getLastColumn() {
if (columnsXML.size() == 0) {
System.out.println("Error in Column");
throw new NullPointerException();
}
ColumnXML columnXML = columnsXML.get(columnsXML.size() - 1);
return columnXML;
} | [
"String lastColumnFooter();",
"public RTWElementRef lastAsElement();",
"public MatrixEntry getEndOfColumnList(MatrixEntry currentMatrixEntry) {\n while (currentMatrixEntry != null) {\n if(currentMatrixEntry.getNextCol()!= null) {\n currentMatrixEntry = currentMatrixEntry.getNext... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation ... | Pool stopResize(); | [
"Response<Pool> stopResizeWithResponse(Context context);",
"public long freeSpaceToShrinkPool (long spaceToFree) { throw new RuntimeException(); }",
"public final void shrink( final int decrease )\n {\n final Poolable[] poolables = new Poolable[ m_pool.length - decrease ];\n System.arraycopy(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the completed projects. | @Query(value="select task from TaskEO task where task.status ='COMPLETED' and task.project.projectId=:projectId")
List<TaskEO> getcompletedProjects(@Param("projectId")int projectId); | [
"@GetMapping(value=\"/getProjectDetails/completed\")\n\tpublic List<Project> getAllProjectDetails()\n\t{\n\t\treturn integrationClient.getProjectDetiails();\n\t}",
"@GetMapping(value = \"/getProjectDetails/ongoing\")\n\tpublic List<Project> getOngoingProjects()\n\t{\n\t\treturn integrationClient.getOngoingProject... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Import from file directory with hibernate. | public void importFromFileDirectoryWithHibernate(){
throw new RuntimeException("Not implemented yet...");
} | [
"public void importFromFileDirectoryInSQLDatabase(){\n throw new RuntimeException(\"Not implemented yet...\");\n\t}",
"public void importFromFileDirectoryInCassandraDatabase(){\n \tthrow new RuntimeException(\"Not implemented yet...\");\n\t}",
"public static void Import() throws SQLException, FileNotFo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return definition of this global update operation. | public UpdateDefinition getDefinition() {
return _updateDefinition;
} | [
"String getUpdate();",
"GlobalUpdateExpression createGlobalUpdateExpression();",
"public String getUpdateOperId() {\r\n return updateOperId;\r\n }",
"public String getUpdateOperId() {\r\n\t\treturn updateOperId;\r\n\t}",
"public Packet getUpdate() {\n\t\tPacket p = new Packet(Header.updateGame);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called by the session thread to indicate the ned of a session. Once the session has ended it notifies all the customer threads to leave the projection room. | public synchronized void sessionEnd(int i){
while(cinemaEnded==false){
try {
System.out.println("Session is yet to be ended by "+Thread.currentThread().getName());
wait();
} catch (InterruptedException e) {
e.printStackTrace();
}
}
sessionStarted = false;
sessionEnded = true;
int j = i+1;... | [
"public synchronized void exitHall(){\n\t\twhile(sessionEnded==false){\t\t\t//This is a if before once the session has ended and the customers have been \n\t\t\t\t\t\t\t\t\t\t\t//notified there is no chance the sessionEnded variable will change again so there\n\t\t\t\t\t\t\t\t\t\t\t//is no need to check.\n\t\t\ttry... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the view accessor RowSet CashTypeVo1. | public RowSet getCashTypeVo1() {
return (RowSet)getAttributeInternal(CASHTYPEVO1);
} | [
"public RowSet getWashTypeVO1() {\n return (RowSet)getAttributeInternal(WASHTYPEVO1);\n }",
"public RowSet getTypeacteurView1() {\n return (RowSet) getAttributeInternal(TYPEACTEURVIEW1);\n }",
"public ViewObjectImpl getCashTypeVo1() {\n return (ViewObjectImpl)findViewObject(\"CashType... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Constructors Creates an empty TabularDataSupport instance whose opentype is tabularType, and whose underlying HashMap has a default initial capacity (101) and default load factor (0.75). This constructor simply calls this(tabularType, 101, 0.75f); | public TabularDataSupport(TabularType tabularType) {
this(tabularType, 16, 0.75f);
} | [
"public TabularDataSupport(TabularType tabularType, int initialCapacity, float loadFactor) {\n\n // Check tabularType is not null\n //\n if (tabularType == null) {\n throw new IllegalArgumentException(\"Argument tabularType cannot be null.\");\n }\n\n // Initialize this... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the zalbaBrojZbogOdbijanja property. | public void setZalbaBrojZbogOdbijanja(int value) {
this.zalbaBrojZbogOdbijanja = value;
} | [
"public void setZalbaBrojPodnetih(int value) {\n this.zalbaBrojPodnetih = value;\n }",
"public void setZahtevBrojOdbacenih(int value) {\n this.zahtevBrojOdbacenih = value;\n }",
"public void setZalbaBrojZbogNepostupanja(int value) {\n this.zalbaBrojZbogNepostupanja... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Busca la mejor solucion, es decir, la que tiene el menor fitness dentro de toda la poblacion. Imprime el cromosoma y el fitness del mejor individuo de la poblacion. | public static void mejorSolucion(ArrayList<Individuos> poblacion){
Individuos min_fitness;
min_fitness = poblacion.get(0);
for(int ii=0; ii<poblacion.size();ii++){
Individuos aux = poblacion.get(ii);
if(aux.getFitnes()<min_fitness.getFitnes()){
min_fitness = aux;
}
}
for(int j=0; j<m... | [
"public void run() {\n PopulationFGA<Integer> poblacionActual = new PopulationFGA<>(funcionBorn,\n funcionFitness,\n problema.getDimension(),\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check for details of site is favorite or not. | public boolean isSiteFavourtie()
{
try
{
if (getCurrentPage() instanceof SiteDashboardPage)
{
selectSitesDropdown();
if (isElementDisplayed(By.cssSelector(SELECT_SITE_AS_FAVOURITE)))
{
return false;
... | [
"public boolean doesAnyFavouriteSiteExist()\n {\n boolean doesAnyFavouriteSiteExist = true;\n try\n {\n selectFavourties();\n WebElement element = findFirstDisplayedElement(By.cssSelector(FAVOURITE_TEXT));\n String noFav = getValue(\"no.favourites\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fetch and display the X.400 message headers (ie from a message retrieved using x400_msggetmessagebody(). | public static int do_xmsg_headers(Message message)
{
int status;
int paramtype;
int len = -1, maxlen = -1;
String value; // string to contain value returned from API
int int_value; // int to contain value returned from API
System.out.println("X400 Message Content:");
System.out.println("... | [
"org.hl7.fhir.MessageHeader getMessageHeader();",
"protected String getMessageHeaders() {\n\t\t// Most header are less than 1024 characters long\n\t\tString headers = \"\";\n\t\theaders = headers + \"Date: \" + new Date().toString() + \"\\n\";\n\t\theaders = headers + \"Sender: \" + sender + \"\\n\";\n\t\theaders... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes a BTreeNode of a given order. | BTreeNode(int order) {
vals = new int[order]; // cap + 1 to allow for insertion before split
size = 0;
keys = new BTreeNode[order + 1];
isLeaf = true;
parentIndex = 0;
minSize = (order - 1) / 2;
} | [
"BTree(int order) {\n assert(order > 2);\n root = new BTreeNode(order);\n }",
"public BTree(int order) {\n throw new UnsupportedOperationException(\"implement me!\");\n }",
"public Btree() \n {\n root = new Node(0);\n }",
"private TreeNode constructBinaryTree(int[] preorder , i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets config to save. | public String getConfigToSave() {
return configToSave;
} | [
"Map<String, String> saveConfig();",
"public Config getConfig();",
"public String getConfig() {\n\t\treturn record.getConfiguration();\n\t}",
"public void saveConfig();",
"public static Config getConfig(){\n return config;\n }",
"public ConfigFile getConfig() {\r\n return config;\r\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column zq_order_settlements.isFinish | public Integer getIsfinish() {
return isfinish;
} | [
"public java.lang.String getFinishCondition() {\n return finishCondition;\n }",
"public BigDecimal getFinishOrderAmount() {\n return finishOrderAmount;\n }",
"public Integer getFinishOrderCount() {\n return finishOrderCount;\n }",
"public boolean isSetIsFinish() {\n\t\treturn org... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns root wargear group with matching name | public ArmylistWargearGroup getWargearGroupbyName(String name){
Iterator iterator = this.wargearGroups.iterator();
while(iterator.hasNext()){
ArmylistWargearGroup temp = (ArmylistWargearGroup)iterator.next();
if(temp.getName().equalsIgnoreCase(name))
return temp;
... | [
"IGroup getRootGroup();",
"List<String> findRootGroups();",
"public Group getRoot(){\n assert(root != null);\n return root;\n }",
"static public ZNameGroup getNameGroup(String name) {\n\tZNameGroup nameGroupNode = (ZNameGroup)nameHash.get(name);\n\treturn nameGroupNode;\n }",
"public Gro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return a users detail by the username | public User searchUserByUsername(String username){
User uDetail = null;
for( User u : userList){
if(u.getUsername().equals(username)) uDetail = u;
}
return uDetail;
} | [
"public Users queryUserInfoByUsername(String username);",
"UserPo selectUserByUsername(String username);",
"public User getUserByUsername(String username);",
"UserDetails loadUserByUsername(String username) throws UsernameNotFoundException;",
"@Override\n public ResponseEntity<User> usersUsernameGet(@Pat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructors for JSON Creation Creates a new empty JsonObject. | public JsonObject()
{
super(ParserUtil.OBJECT_OPEN, ParserUtil.OBJECT_CLOSE);
setup();
} | [
"public MyJsonObject() {}",
"public JsonObject() {\n names = new Vector<String>();\n values = new Vector<JsonValue>();\n table = new HashIndexTable();\n }",
"public static JsonObject object() {\n return new JsonObject();\n }",
"public JSONBuilder() {\n\t\tthis(null, null);\n\t}",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ User is navigating to the services page by clicking Services tab | @Given("User is on Services page")
public static void user_is_on_services_page() {
try {
click("services");
} catch (IOException e) {
e.printStackTrace();
}
} | [
"public void navigateToServiceLineTab()\n\t{\t\t\n\t\t//To check the status of \"Continued_Execution\" parameter, if it is set to NO it will skip this method, if not it will resume the execution \n\t\tif(oParameters.GetParameters(\"Continued_Execution\").equalsIgnoreCase(\"No\"))\n\t\t{\t\t\t\n\t\t\t//Adding step r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Will create an ArrayList of java.sql.Timestamp objects, converting any java.util.Date objects in x. | public JdbcStatement setTimestamps(String name, Collection<? extends Date> x) {
List<java.sql.Timestamp> timestamps = new ArrayList<>();
for (Date date : x) {
timestamps.add(date != null && !(date instanceof java.sql.Timestamp)
? new java.sql.Timestamp(date.getTime()) : null);
}
return setCollection... | [
"public java.util.List<java.util.Date> getTimestamps() {\n if (timestamps == null) {\n timestamps = new com.amazonaws.internal.SdkInternalList<java.util.Date>();\n }\n return timestamps;\n }",
"public java.sql.Timestamp toTimeStamp(){\n Object obj = super.toObject();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the type(s) of values that belong to this domain. | @Override
public Type[] getTypes()
{
return valueDomain_.getTypes();
} | [
"public Object getValueTypes() {\n return getValueTypesWithServiceResponseAsync().toBlocking().single().body();\n }",
"public static Collection<Type> values() {\n return values(Type.class);\n }",
"public Types getTypes();",
"DomainValuesType createDomainValuesType();",
"public static Col... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
~ Methods Returns the time in milliseconds by which the event handling for a widget should be delayed. This can be used by widgets that have some UI animation that should be finished before the event handling starts. | public int getEventHandlingDelay(); | [
"public interface HasEventHandlingDelay\n{\n\t//~ Methods ----------------------------------------------------------------\n\n\t/***************************************\n\t * Returns the time in milliseconds by which the event handling for a widget\n\t * should be delayed. This can be used by widgets that have some... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set value of MxSheet_HeaderStyle | public final void setMxSheet_HeaderStyle(com.mendix.systemwideinterfaces.core.IContext context, xlsreport.proxies.MxCellStyle mxsheet_headerstyle)
{
if (mxsheet_headerstyle == null)
getMendixObject().setValue(context, MemberNames.MxSheet_HeaderStyle.toString(), null);
else
getMendixObject().setValue(con... | [
"public final void setMxSheet_HeaderStyle(xlsreport.proxies.MxCellStyle mxsheet_headerstyle)\r\n\t{\r\n\t\tsetMxSheet_HeaderStyle(getContext(), mxsheet_headerstyle);\r\n\t}",
"void setHeaderTitleColor(Color titleColor);",
"public void setHeaderBackground(Color newColor);",
"public void setHeaderBackground(Co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Execute the parse operation on the object. | public abstract Object parse() throws Exception; | [
"public Object executeIncremental() throws EllaIOException, EllaParseException, EllaException {\n initParserIncremental();\n initEngine();\n try {\n Object result = null;\n while (parseTokensIncremental() && !engine.isExited()) {\n if (tree == null) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests if the manager works correctly when the package name for a directory is changed (on system update). | public void testPackageRenamed() throws Exception {
mPackageManager.setInstalledPackages(
Lists.newArrayList(
createProviderPackage("test.package1", "authority1"),
createProviderPackage("test.package2", "authority2"),
create... | [
"@Test public void alreadyAnotherInstalled() {\n error(desc(PKG5, \"pkg5\", \"12.0\",\n \"<xquery><namespace>ns1</namespace><file>pkg1mod1.xql</file></xquery>\"),\n REPO_INSTALLED_X, \"Already installed component not detected.\");\n }",
"public boolean checkSetup(){\n return checkSetup(folder... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table oauth_approvals | int insert(OauthApprovals record); | [
"List<OauthApprovals> selectAll();",
"@GetMapping(\"/getapprovals\")\n\t\tpublic @ResponseBody List<Approval> getapprovals()\n\t\t{\n\t\t\t\n\n\t\t\t/*\n\t\t\t * temporary list of approvals\n\t\t\t */\n\t\t\tList<Approval> tempList=new ArrayList<Approval>();\n\t\t\t\n\t\t\t//tempList=repository.findAll();\n\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__QualifiedNameWithWildcard__Group__1" $ANTLR start "rule__QualifiedNameWithWildcard__Group__1__Impl" ../org.iobserve.rac.constraint.ui/srcgen/org/iobserve/rac/constraint/ui/contentassist/antlr/internal/InternalConstraintLang.g:4426:1: rule__QualifiedNameWithWildcard__Group__1__Impl : ( ( rule__Qualifie... | public final void rule__QualifiedNameWithWildcard__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.iobserve.rac.constraint.ui/src-gen/org/iobserve/rac/constraint/ui/contentassist/antlr/internal/InternalConstraintLang.g:4430:1: (... | [
"public final void rule__QualifiedNameWithWildcard__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.iobserve.rac.constraint.ui/src-gen/org/iobserve/rac/constraint/ui/contentassist/antlr/internal/InternalConstraintLang.g:4... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
search the disease,hp and mp ontology for a searchQuery and return an ordered set of CharacteristicVO | public Set<CharacteristicValueObject> findPhenotypesInOntology( String searchQuery ) {
if ( this.ontologies.isEmpty() ) {
resetOntologies();
}
HashMap<String, OntologyTerm> uniqueValueTerm = new HashMap<String, OntologyTerm>();
for ( AbstractOntologyService ontology : this... | [
"public abstract Collection<OntologyTerm> findTerms( String search );",
"List<Cemetery> search(String query);",
"List<Corretor> search(String query);",
"List<PoliticoAtributo> search(String query);",
"List<Tache> search(String query);",
"List<TramiteAsociadoDTO> search(String query);",
"List<Prueba> sea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Apply a sequence of matched rule lookups to the nig input glyphs starting at the current position. If lookups are nonnull and nonempty, then all input glyphs specified by nig are consumed irregardless of whether any specified lookup applied. | public boolean apply(final GlyphTable.RuleLookup[] lookups, final int nig) {
if (lookups != null && lookups.length > 0) {
// apply each rule lookup to extracted input glyph array
for (int i = 0, n = lookups.length; i < n; i++) {
final GlyphTable.RuleLookup l = lookups[i];... | [
"private static void resolveParserRule(ParserRule rule, Map<String, Rule> rules) throws IngridParserException {\n // For each alternative line..\n for (Alternative alternative : rule.alternatives) {\n // For each element on the line..\n for (int i = 0; i < alternative.elements.si... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the Rule that corresponds to a formula with antecedent as its antecedent and consequent as its consequent in the context ctx. Throws exceptions if no such formula is found in the specified context, or if the formula is not a rule formula using $implies. | public static Rule get(Sentence antecedent, Sentence consequent, Context ctx)
throws KbTypeException, CreateException {
return RuleImpl.get(SentenceImpl.implies(antecedent, consequent), ctx);
} | [
"@SuppressWarnings(\"deprecation\")\n public static Rule get(Sentence formula, Context ctx) throws KbTypeException, CreateException {\n CycAssertion ca = null;\n //@todo: There are two purposes of caching\n // 1. Reduce round trip to KB\n // 2. Use the same object if core is equal.\n // Since the ca... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check particles and constraints not in composites of either group | private void checkCollisionVsGroup(Group g) {
checkCollisionsVsCollection(g);
int clen = _composites.size();
int gclen = g.getComposites().size();
// for every composite in this group..
for (int i = 0; i < clen; i++) {
// check vs the particles and constraints of g
Composite c = _compo... | [
"private void checkCollisionGroupInternal() {\n\t\tcheckInternalCollisions();\r\n\t\t\r\n\t\t// for every composite in this Group..\r\n\t\tint clen = _composites.size();\r\n\t\tfor (int j = 0; j < clen; j++) {\r\n\t\t\t\r\n\t\t\tComposite ca = _composites.get(j);\r\n\t\t\t\r\n\t\t\t// .. vs non composite particles ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Bestimmt die maximale Anzahl an Zeilen | private int bestimmeMaxZeilen(UebersichtSchnittstellenKlasse uebersichtSST) {
//maximale Anzahl zeilen bestimmen
return uebersichtSST.anzahlArten;
} | [
"int maxNumElements();",
"public int getMaxCount() { return (this.maxCount); }",
"BigInteger getLoopMaximum();",
"int getMaxValue();",
"abstract public int getMaxLitterSize();",
"int getMaximumSize();",
"Integer getMaximumResults();",
"public int getMaximumNumber() {\n\t\treturn 99999;\n\t}",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of usable storage ports. Also generates the number of distinct StorageHADomains in the cachedUsableHADomains map. To be "usable", a port must be: 1. Not inactive (or null) 2. Registered 3. Must be frontend port 4. Must be associated with a Network 5. OperationalStatus must not be NOT_OK 6. Port must ... | private int numberOfUsablePorts(URI storageDeviceURI,
StorageProtocol.Transport transportType,
Set<String> vArrays, Map<URI, Integer> cachedUsablePorts,
Map<URI, Integer> cachedUsableHADomains) {
Integer usable = cachedUsablePorts.get(storageDeviceURI);
if (usable !=... | [
"int getStorageSpaceCount();",
"Integer getPortMappingCount() throws NotDiscoverUpnpGatewayException, UpnpException;",
"@Override\n public int portCount()\n {\n return this.ports.size();\n }",
"public int getNumPortsAvailable() {\n\t\treturn numPortsAvailable;\n\t}",
"public int getUnusedPortCount() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
campo no obligatorio, tipo String, valor no null | @Test
public void campoNoObligatorioTipoStringValorNoNull() throws NoSuchMethodException,
IllegalAccessException, InvocationTargetException, ValidationException {
final ClaseNoObligaPruebaAtributoString clase = new ClaseNoObligaPruebaAtributoString();
clase.setCampoString("hola");
validador.entradaEsValida... | [
"@Test\n\tpublic void campoNoObligatorioTipoStringValorNull() throws NoSuchMethodException, \n\t\tIllegalAccessException, InvocationTargetException, ValidationException {\n\t\tfinal ClaseNoObligaPruebaAtributoString clase = new ClaseNoObligaPruebaAtributoString();\n\t\tclase.setCampoString(null);\n\t\t\n\t\tvalidad... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates and instantiates a new DatabaseSerializationInfoParserer object. | public DBSerializationInfoParser()
throws DBSerializationException {
this(null);
} | [
"public DataParser() {\n validator = new Validator();\n toyFactory = ToyFactory.getInstance();\n }",
"public DBSerializer(Class<?> theClass, URI databaseServer)\n throws DBSerializationException {\n\n\n this.databaseDriver = new DBSerializationDriver();\n this.databaseDri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the row's upper bound or null if unbounded. | @Override
public Double getUpperBound() {
checkConstraint();
double value = GLPK.glp_get_row_ub(this.parent.lp, this.row);
if (value == GLPKLinearProblem.DBL_MAX) {
return null;
}
return Double.valueOf(value);
} | [
"@Override\n public double getUpperBound() {\n return this.upperBound;\n }",
"public AnnotatedTypeMirror getUpperBoundField() {\n return upperBound;\n }",
"public double getUpperBound() {\n return upperBound;\n }",
"public int getUpperRange()\n {\n return upperBoun... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ StampExplainer Constructors / | public StampExplainer(DataStamp stamp) {
this.stamp = stamp;
} | [
"public Stamp()\n {\n // initialise instance variables\n id = genID();\n name = defaultname();\n rarity = 'u';\n value = 0.00; \n }",
"public SpamAnalyzer( )\n\t{\n\t\tsuper( );\n\t}",
"public Synopsis()\n\t{\n\n\t}",
"public ExamMB() {\n }",
"public LSS() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes the toolbar text at the top of the screen | public void changeToolbarText (String Title){
Toolbar toolbar = findViewById(R.id.toolbar);
TextView toolbarTitle = findViewById(R.id.toolbar_title);
setSupportActionBar(toolbar);
toolbarTitle.setText(Title);
} | [
"private void updateToolBarTitle() {\n mToolbar.setTitle(DataRepository.getInstance().getStoredDataInCache().getTitle());\n }",
"public void setToolBarText(String s) {\n\t\t_baseToolBar.setText((s == null) ? \"\" : s);\n\t}",
"private void initToolBar() {\n Toolbar toolbar = findViewById(R.id.toolb... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parses a SMSSTATUSREPORT message. | private void parseSmsStatusReport(PduParser p, int firstByte)
{
mIsStatusReportMessage = true;
// TP-Message-Reference
/*int mMessageRef = */p.getByte();
// TP-Recipient-Address
/*Object mRecipientAddress = */p.getAddress();
// TP-Service-Centre-Time-Stamp
serviceCenterTimeStamp = p.getSCTimestampDateTi... | [
"Status getMessageStatus(String msgId);",
"public SCStatus parse(String message) {\n final SCStatusBuilder builder = builder();\n final char [] messageChars = message.toCharArray();\n\n // status code: 1-char, fixed-length required field\n builder.statusCode(parseStatusCode(messageChars));\n\n // m... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
generates a random color | private void randomColor() {
c = new Color(r.nextInt(255), r.nextInt(255), r.nextInt(255));
} | [
"public Color generateRandomColor() {\n\t\tRandom rand = new Random();\n\t\tDouble r = rand.nextDouble();\n\t\tDouble g = rand.nextDouble();\n\t\tDouble b = rand.nextDouble();\n\t\treturn Color.color(r, g, b);\n\t}",
"public static String getRandomColor() {\n Random aRandom = new Random(System.nanoTime());... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
create an artificial runs set of length 4 | public static final Runs artificial_4() {
return RunsExamples.__create(new long[][] { //
{ 1L, 2L }, //
{ 3L, 4L }, //
{ 5L, 6L }, //
{ 7L, 8L }, //
});
} | [
"private void computeRuns()\n {\n int runCount = 0;\n int currentEmbedding = baseEmbedding;\n for (int i = 0; i < length; ++i)\n {\n if (levels[i] != currentEmbedding)\n {\n currentEmbedding = levels[i];\n ++runCount;\n }\n }\n \n // ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct a SnowflakeURL object from a String | public SnowflakeURL(String urlStr) {
Pattern pattern =
Pattern.compile("^(https?://)?((([\\w\\d-]+)(\\.[\\w\\d-]+){2,})(:(\\d+))?)/?$");
Matcher matcher = pattern.matcher(urlStr.trim().toLowerCase());
if (!matcher.find()) {
throw new SFException(ErrorCode.INVALID_URL);
}
ssl = !"htt... | [
"public static String toSnowflakeURL(String hiveUrl)\n throws Exception\n {\n String snowflakeUrl;\n // for now, only handle stages on aws\n // hive can have prefixes 's3n' or 's3a', do some processing for Snowflake\n if (hiveUrl.startsWith(\"s3\"))\n {\n int colonIndex = hiveUrl.indexOf(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all the my libraries where stato = &63;. | public java.util.List<com.appuntivari.mylibrary.model.MyLibrary> findByStato(
java.lang.String stato)
throws com.liferay.portal.kernel.exception.SystemException; | [
"public java.util.List<com.appuntivari.mylibrary.model.MyLibrary> findByTitolo(\n\t\tjava.lang.String titolo)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"Set<String> findLibraries(String url) throws IOException;",
"String[] getLibraries();",
"java.util.List<String> getSystemSharedLibra... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Standard set difference operation with this set as the first component, and the passed set as the second component | public SetSet setDifference(SetSet second){
SetSet result = new SetSet();
for(int i=0;i<size();i++){
if(second.contains(get(i))==-1){
result.add(get(i));
}
}
return result;
} | [
"public Set difference(Set anotherSet);",
"public ZYSet<ElementType> difference(ZYSet<ElementType> otherSet){\n ZYSet<ElementType> result = new ZYArraySet<ElementType>();\n for(ElementType e :this){\n if(!otherSet.contains(e)){\n result.add(e);\n }\n }\n return result;\n }",
"public Ordere... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Cancels the heartbeat task and closes the client | private final void closeHeartbeatOnFailure() {
log.warn("{} Stopping heartbeat and closing client: failure during heartbeat mechanism", label);
heartbeat.cancel(false);
heartbeat = null;
hearbeatExec.shutdownNow();
try {
closeWithReconnection();
} catch (IOException e) {
log.warn("... | [
"private void stopHeartbeat() {\r\n\t\t\r\n\t\tLog.d(TAG, \"Heartbeat attempt canceled...\");\r\n\t\t\r\n\t\tIntent i = new Intent();\r\n\t\ti.setClass(this, RumpyService.class);\r\n\t\ti.setAction(SERVICE_HEARTBEAT);\r\n\t\tPendingIntent pi = PendingIntent.getService(this, 0, i, 0);\r\n\t\tAlarmManager alarmMgr = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ get entity full name based on name in configure and metadata | static String getEntityFullName(String name, HAPEntityDefinitionMeta metadata){
if(metadata==null) return name;
String out = "";
if(name.startsWith(HAPConstant.SYMBOL_ENTITYNAME_COMMON)){
//".." common prefix
out = HAPNamingConversionUtility.cascadeComponents(HAPEntityDefinitionLoaderXML.PACKAGE_COMM... | [
"java.lang.String getEntityName();",
"String getEntityName();",
"static private String isEntityName(String name, HAPEntityDefinitionMeta metadata){\n\t\tif(name.startsWith(HAPConstant.SYMBOL_ENTITYNAME_COMMON)) return getEntityFullName(name, metadata); \n\t\tif(name.startsWith(HAPConstant.SYMBOL_ENTITYNAME_CU... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getters / Setters. Gets the painter for painting the dragged dockables. | public DockableDragPainter getDockableDragPainter()
{
return dockableDragPainter;
} | [
"public FigureDockable getFigureDock() {\n return this.figuresDock;\n }",
"public AbstractOutlinePainter getPainter() {\n return painter;\n }",
"public void setDockableDragPainter(DockableDragPainter dockableDragPainter)\r\n\t{\r\n\t\tthis.dockableDragPainter = dockableDragPainter;\r\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
fin metodo establecerNombreDelCurso Metodo para obtener el nombre del curso | public String obtenerNombreDelCurso()
{
return nombreDelCurso;
} | [
"public String obtenerNombreDelCurso()\r\n\t{\r\n\t\treturn nombreDelCurso;\r\n\t}",
"public String getNomeCurso()\n\t{\n\t\t// Retorna o nome do Curso\n\t\treturn cursoNome;\n\t}",
"public String getIdCurso() {\n\t\treturn idCurso;\n\t}",
"public LibroCalificaciones4( String nombre )\r\n\t{\r\n\t\tnombreDelC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test the GeneralLedger BO | @Test
public void TestGeneralLedger() throws Exception {
GeneralLedger generalledger1 = BusinessObjectDAO.getInstance().create("GeneralLedger", "generalledger7");
generalledger1.setAccountname("Sales Tax");
generalledger1.setBalance(52.47f);
generalledger1.setTypekind("Debit");
... | [
"@Test\n public void testRBIPaymentStrategy() {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n /***\n * Create loan product with RBI strategy\n */\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create training and open search page. | public static TradeTraining createTrainingAndOpenSearchPage(Roles role) {
Logger.getInstance().info("Precondition: Create some Trade Trainings");
TradeTraining training = new TradeTraining();
TrainingSteps.createTradeTraining(training, role, Roles.ADMIN);
Logger.getInstance().info("Log ... | [
"private void _createPageDef()\n {\n _pageDef = new DemoPageDef();\n _pageDef.setupAttributes();\n \n List<DemoPageDef.SavedSearchDef> searchDefList = _pageDef.setupSavedSearchDefList();\n \n // Mark the first sabved Search definition as the current\n _currentDescriptor = new DemoQueryDescript... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets a value to attribute reasonForCancellation. | public void setReasonForCancellation(String newReasonForCancellation) {
this.reasonForCancellation = newReasonForCancellation;
} | [
"public final void setReasonForCancellation(java.lang.String reasonforcancellation)\r\n\t{\r\n\t\tsetReasonForCancellation(getContext(), reasonforcancellation);\r\n\t}",
"public final void setReasonForCancellation(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String reasonforcancellation)\r\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
prints the whole field as a single Array | public static void printArray(Cell[] arr) {
Constants.logger.info("\nWhole Field as single Array[");
for (int j = 0; j < arr.length; j++) {
System.out.print(arr[j]);
}
Constants.logger.info("]\n");
} | [
"@Override\n public String toString() {\n return field.toString();\n }",
"public String toString() {\n String output = \"\";\n for (int i = 0; i < this.numFields(); i++) {\n output += this.getType(i).name() + \"(\" + this.getFieldName(i) + \")\";\n if (i < this.nu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "RULE_UPPERCASE_ID" $ANTLR start "RULE_ID" | public final void mRULE_ID() throws RecognitionException {
try {
int _type = RULE_ID;
int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalDSL.g:16701:9: ( ( '^' )? ( 'a' .. 'z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
// InternalDSL.g:16701:11: ( '^'... | [
"public final void mRULE_UPPERCASE_ID() throws RecognitionException {\n try {\n int _type = RULE_UPPERCASE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalDSL.g:16699:19: ( 'A' .. 'Z' ( 'A' .. 'Z' | 'a' .. 'z' | '_' | '0' .. '9' )* )\n // InternalDSL.g:166... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
///////////////////////////////////////////////////////////////////////////////////////////// Register a AudiopPofile listener callback to AudioProfileService ///////////////////////////////////////////////////////////////////////////////////////////// Register the IAudioProfileListener callback to AudioProfileService ... | public void listenAudioProfie(IAudioProfileListener callback, int event) {
IAudioProfileService service = getService();
try {
service.listenAudioProfie(callback, event);
} catch (RemoteException e) {
Log.e(TAG, "Dead object in listenAudioProfie", e);
}
} | [
"@Override\n\tpublic void registerCallbackAddProfile(IAddProfileCallback callback)\n\t{\n\t\tm_addProfileCallback = callback;\n\t}",
"@Override\n\tpublic void registerCallbackUpdateProfile(IUpdateProfileCallback callback)\n\t{\n\t\tm_updateProfileCallback = callback;\n\t}",
"protected void register() {\r\n\t\ti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use OtherSystemResponse.newBuilder() to construct. | private OtherSystemResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
} | [
"private OtherSystemRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private SystemResponse(Builder builder) {\n super(builder);\n }",
"ServiceResponse<System> readSystem(Long systemId);",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get by brand and color | List<Car> getByBrandAndColor(String brand, String color); | [
"java.lang.String getBrand();",
"public Brand getBrand(Integer brandid);",
"List<Car> findByColor(String color);",
"Color findById(long id) throws ProductException;",
"public List<Barn> findByColor(Color color);",
"Brand findByBrandId(long id);",
"List<Car> findByBrand(String brand);",
"public Object ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
void marshal(org.xml.sax.ContentHandler) Sets the value of field 'anio'. | public void setAnio(int anio)
{
this._anio = anio;
this._has_anio = true;
} | [
"public void setAnio(String anio) {\n\t\tthis.anio = anio;\n\t}",
"public void setAnio(java.lang.String anio);",
"public String getAnio() {\n\t\treturn anio;\n\t}",
"public void setDocumentHandler(DocumentHandler handler)\n {\n contentHandler = new Adapter(handler);\n xmlNames = true;\n }",
"voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Categoria__Group__8" $ANTLR start "rule__Categoria__Group__8__Impl" ../org.xtext.catalogo.ui/srcgen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:2021:1: rule__Categoria__Group__8__Impl : ( '}' ) ; | public final void rule__Categoria__Group__8__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:2025:1: ( ( '}' ) )
// ../org.xtext.catalogo.u... | [
"public final void rule__Categoria__Group__9__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:2055:1: ( ( '}' ) )\n // ../org.xte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
nameAnalysis Given a symbol table symTab, perform name analysis on this node's child | public void nameAnalysis(SymTable symTab) {
myExp.nameAnalysis(symTab);
} | [
"public void nameAnalysis(SymTable symTab) {\n if (myExp != null) {\n myExp.nameAnalysis(symTab);\n }\n }",
"public void nameAnalysis(SymTable symTab) {\n myLhs.nameAnalysis(symTab);\n myExp.nameAnalysis(symTab);\n }",
"public void nameAnalysis(SymTable symTab) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Each daisy ages and dies if reaches the maximum age | private void age() {
// Age and die
for (int i = 0; i < Params.EDGE; i++) {
for (int j = 0; j < Params.EDGE; j++) {
Patch patch = grid[i][j];
if (patch.getDaisy() != null) {
if (patch.getDaisy().getAge() < Params.MAX_AGE) {
... | [
"@Override\n protected void age() {\n \n // Grow older\n age++;\n \n // If age reaches maximum life span, then die\n if(age >= LIFE_SPAN)\n die();\n }",
"protected void incrementAge()\n {\n age++;\n if(age > MAX_AGE) {\n setDea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Performs the up scaling of Vm resource associated to a given scaling object. | private boolean upScaleVmVertically(final VerticalVmScaling scaling) {
return isRequestingCpuScaling(scaling) ? scaleVmPesUpOrDown(scaling) : upScaleVmNonCpuResource(scaling);
} | [
"private boolean upScaleVmNonCpuResource(final VerticalVmScaling scaling) {\n final Class<? extends ResourceManageable> resourceClass = scaling.getResourceClass();\n final ResourceManageable hostResource = scaling.getVm().getHost().getResource(resourceClass);\n final double extraAmountToAllocat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the ProdsCompldOpsELPOverride field. | public void setProdsCompldOpsELPOverride(java.math.BigDecimal value); | [
"public void setPremOpsELPOverride(java.math.BigDecimal value);",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getProdsCompldOpsELPOverride();",
"public void setProductWithdrawalELPOverride(java.math.BigDecimal value);",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.ma... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Read LOC header and check signature | private void readLOC() throws java.io.IOException {
byte locbuf[] = new byte[LOCHDR];
ZipFile zf = this.zf;
ZipEntry ze = this.ze;
long offset = ze.getOffset();
if (TRACE)
System.out.println(this +": reading LOC, offset=" + offset);
... | [
"void readFileHeader() throws IOException {\n\tbyte header[] = new byte[HEADER_SIZE] ;\n\n\ttry {\n\t setFilePointer(0) ;\n\t if (cgFile.read(header) != HEADER_SIZE) {\n\t\tclose() ;\n\t\tthrow new IOException(\"failed header read\") ;\n\t }\n\t}\n\tcatch (IOException e) {\n\t if (cgFile != null) {\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times. Return the element repeated N times. Example 1: Input: [1,2,3,3] Output: 3 Example 2: Input: [2,1,2,5,3,2] Output: 2 Example 3: Input: [5,1,5,2,5,3,5,4] Output: 5 Note: 4 <= A.length <= 10000 0 <= A[i] < 10000... | public int repeatedNTimes(int[] A) {
List<Integer> visited = new ArrayList<>();
int result = A[0];
for (int i = 0; i < A.length; i++) {
if (!visited.contains(A[i])) {
visited.add(A[i]);
} else {
result = A[i];
break;
... | [
"public static int repeatedNumber(final List<Integer> a) {\n\t\tint n = a.size();\n\t\tHashMap<Integer, Integer> map_a=new HashMap<>();\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tmap_a.put(a.get(i), map_a.getOrDefault(a.get(i), 0)+1);\n\t\t}\n\t\tSystem.out.println(map_a);\n\t\tfor(int i:map_a.values()) {\n\t\t\tif(i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
bool g = 25; | boolean getG(); | [
"boolean getTestBool();",
"boolean getB25();",
"public void setGFlag(boolean b) {\r\n gFlag = b;\r\n }",
"boolean getB24();",
"boolean getB27();",
"BooleanVariable createBooleanVariable();",
"boolean getB23();",
"boolean getB26();",
"Bool createBool();",
"public boolean getGlitter() { retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a textual description of the target. | protected abstract String getTargetDescription(); | [
"public String getTargetDescription() {\n return m_targetDescription;\n }",
"public String getTarget() {\n return this.target;\n }",
"java.lang.String getTarget();",
"java.lang.String getDescription();",
"public String getDescription()\r\n\t{\r\n //System.out.println(\"DefaultUn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column tbl_news.sec_title | public String getSecTitle() {
return secTitle;
} | [
"public String getNewsTitle() {\n return newsTitle;\n }",
"@Select({\n \"select\",\n \"NEWS_ID, TITLE, BODY, IMG_URL, URL, CREATE_TIME\",\n \"from NEWS\",\n \"where NEWS_ID = #{newsId,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"NEWS_ID\", property=\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getSQLXML method, of interface java.sql.CallableStatement | public void testGetSQLXML() throws Exception {
CallableStatement instance = newClosedCall();
try {
instance.getSQLXML(getParameterName());
fail("Allowed get sqlxml by parameter name after close.");
} catch (SQLException ex) {
checkException(ex);
}
... | [
"public void testSetSQLXML() throws Exception {\n String parameterName = getParameterName();\n int parameterIndex = getParameterIndex();\n\n long length = 0L;\n CallableStatement instance = newClosedCall();\n SQLXML x = newConnection().createSQLXML(); // this will never get used\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
compiler already creates a constructor (it is hidden at the moment) if we don't create one sometimes we might have to create a constructor on our own first we give AM (accessModifier) then we give methodName (Must be same with className) to create object from this class we can do the following: c10_ConstructorsIntro ob... | public static void main (String[]args){
c10_Constructor_Intro obj = new c10_Constructor_Intro( 10); // prints : Constructor with argument of int
c10_Constructor_Intro obj2 = new c10_Constructor_Intro(20);// prints : Constructor with argument of int
// so every time we create an objec... | [
"DefaultConstructor(int a){}",
"TypesOfConstructor(){\n System.out.println(\"This is default constructor\");\n }",
"Constructor<T> newConstructor();",
"public static void main(String[] args) {\n Constructor obj=new Constructor(); //AB\n\n\n }",
"@Test\n\tpublic void oneArgumentConstructo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ delete lecture board | void deleteLectureBoard(int boardNo); | [
"public void deleteBoard(long boardId) throws SharedPaintException;",
"public void deleteStep(ActionEvent actionEvent) {\n showAlert(Alert.AlertType.INFORMATION, window.getScene().getWindow(), \"Success\", \"Your board has been deleted\");\n if(jellyFacade.deleteStep(step.getIdStep())){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
BEGIN S1AS 5000999 Associates this StandardHost with the given network listener names. | public void setNetworkListenerNames(String[] networkListenerNames) {
String[] oldListenerNames = this.networkListenerNames;
this.networkListenerNames = networkListenerNames.clone();
support.firePropertyChange("ports", oldListenerNames, this.networkListenerNames);
} | [
"public void attachSockets(ArrayList<Socket> sockets) {\n\t}",
"public void addListener(NetworkSpaceListener listener) {\r\n\t\tlisteners.add(listener);\r\n\t}",
"void addNetworkConfigurationChangeListener(\n NetworkConfigurationChangeListener listener)\n {\n eventDispatcher.addNetworkConfigura... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes a MentionedIn property value. | void removeMentionedIn(Hadith oldMentionedIn); | [
"public void removeProperty(TLProperty element);",
"public void removeInvolvedPerson(InvolvedPerson value) {\r\n\t\tBase.remove(this.model, this.getResource(), INVOLVEDPERSON, value);\r\n\t}",
"void addMentionedIn(Hadith newMentionedIn);",
"public void RemoveProperty(String propName) {}",
"public void remov... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |