query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Obtenir la jonction pour un indice donne | public Jonction getJonction(int index) {
return sesJonctions.get(index);
} | [
"public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }",
"int getRegistroFuncional();",
"int getResultantVarIndex();",
"public int obtenerDe(int ren, int colum){\r\n return tablero[ren][colum];\r\n }",
"RowFunction getRowFunction();",
"public int valeurAnnonce();",
"public abstract ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
move to new node | public void moveTo(Node thisNode){
//remove from current node
currentNode.deleteAnt(this);
currentNode = thisNode;
//add ant to new node
currentNode.addAnt(this);
//is new node visible? if not, it is now
boolean visibility = cur... | [
"abstract protected void moveNode (DefaultMutableTreeNode node, DefaultMutableTreeNode destination);",
"void moveNode( int from, int to );",
"public void moveTo(ReadOnlyNode<Slot> newNode )\n {\n if( slotNode != null )\n {\n slotNode.getElement().removePlayer( this );\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns java file handle for impl class file. | private File getImplClassJavaFileHandle() {
return implClassJavaFileHandle;
} | [
"private File getInterfaceJavaFileHandle() {\n return interfaceJavaFileHandle;\n }",
"private File getBuilderInterfaceJavaFileHandle() {\n return builderInterfaceJavaFileHandle;\n }",
"private void setImplClassJavaFileHandle(File implClassJavaFileHandle) {\n this.implClassJavaFileHand... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form MainForm | public MainForm() {
initComponents();
} | [
"public MainForm() {\n initComponents();\n \n }",
"public MainForm() {\n initComponents();\n }",
"public Form getMainForm() {\r\n if (mainForm == null) {//GEN-END:|14-getter|0|14-preInit\r\n // write pre-init user code here\r\n mainForm = new Form(\"LNDict... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a 32bit ExecutabeReader by just supplying a File | public static ExecutableReader createSpecific(File file) throws Exception {
FileInputStream fis = new FileInputStream(file);
ExecutableReader reader = new ExecutableReader(fis);
fis.close();
return reader;
} | [
"public static ExecutableReader create(File file) throws Exception {\n\t\tFileInputStream fis = new FileInputStream(file);\n\t\tExecutableReader reader = create(new ExecutableStream(fis));\n\t\tfis.close();\n\t\treturn reader;\n\t}",
"public static ExecutableReader create(ExecutableStream str) throws Exception {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the grid location. | public void setGridLocation(int row, int col); | [
"public void setGridLocation(int row, int col) {\n this.row = row;\n this.col = col;\n }",
"@Override\n public void setLocation(ITileGrid grid, int x, int y) {\n var tile = grid.getTile(x, y);\n pos = tile.getPixelCenterLocation(grid.getTileSize());\n }",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an N Count Filter with a maximum N Count set equal to the parameter | public NCountFilter(int max) {
// super();
maxN = max;
rejectedOligos = new ArrayList<Oligo>();
checkValues();
} | [
"public void setMaxCount(int maxCount) { this.maxCount = maxCount; }",
"public static OptimizedCommitFilter count(int count) {\r\n return new OptimizedCommitFilter(MaxCountRevFilter.create(count));\r\n }",
"public CountingFilter(int bitArraySize, int expectedElements) {\n\t\tthis.bitArraySize = bitArrayS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Nils the "SearchRecurrenceStart" element | void setNilSearchRecurrenceStart(); | [
"boolean isNilSearchRecurrenceStart();",
"org.apache.xmlbeans.XmlDateTime xgetSearchRecurrenceStart();",
"void setSearchRecurrenceStart(java.util.Calendar searchRecurrenceStart);",
"java.util.Calendar getSearchRecurrenceStart();",
"void unsetSearchRecurrenceStart();",
"boolean isSetSearchRecurrenceStart()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Emit the instructionspecific portion of this instruction. | protected void emitInstSpecific() {
System.out.println("\t => " + returnRegister.toString());
} | [
"@Override\n public void genInstruction() {\n\n }",
"@Override public String toString() {\n return getInstruction();\n }",
"public void emit() {\n\t\tif (label != null)\n\t\t\tSystem.out.print(label + \":\");\n\n\t\tSystem.out.print(\"\\t\" + getOpcode());\n\t\tfor (int i = 0; i < operands.size(); i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
////////////////////////////////////////////////////////////////////////////// Accessors and Mutators ////////////////////////////////////////////////////////////////////////////// Gets the names of all forces used for this model as a comma seperated list. | public String getForceNames()
{
return forceNames;
} | [
"public Set<Force> getForces()\n {\n return forces;\n }",
"public String getForceUnits() {\r\n return m_force;\r\n }",
"public abstract String getForceNames();",
"public Vec3d getMovementForce() {\r\n return movementForce;\r\n }",
"public int getForce() {\n\t return this.f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor of the Packet class, which initialises the packet number with the one read from the file. | public Packet(int packetNumber) {
this.packetNumber = packetNumber;
} | [
"public Packet() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}",
"protected Packet() {\n this(-1);\n }",
"public Packet() {\n\t}",
"public PacketReader(byte[] packet)\n {\n this.packet = packet;\n }",
"public Packet(int length) {\n this.length = length;\n }",
"public P... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
the mine count for a cell (measured by nearby cells) | private int getMineCount(int row, int column)
{
if(mines.contains(new Point(row, column)))
{
return -1;
}
else
{
int mineCount = 0;
for(int i = -1; i < 2; i++)
{
for(int j = -1; j < 2; j++)
{
... | [
"public int countMines() {\n int num = 0;\n\n for (Cell c : this.neighbors) {\n if (c.mine) {\n num += 1;\n }\n }\n return num;\n }",
"private int countMines(int row, int col){\n\n return ((row!=0)? boolToInt(mineModel.hasMineAt(row-1, col)):0) +\n ((row != (mi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
is PIN removal requested? optional bool remove = 1; | boolean hasRemove(); | [
"@Test\n public void removePin() {\n String pin4 =\n \"{\"\n + \" \\\"userID\\\": \\\"user01\\\",\"\n + \" \\\"pin\\\":\"\n + \" {\"\n + \" \\\"lat\\\": \\\"-25.755619\\\",\"\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove the VM on each host in the hoster | @Override
public void deallocateHostForVm(Vm vm) {
for(Host h : hoster.values()) {
h.vmDestroy(vm);
}
} | [
"protected void clearDatacenters() {\nLog.printLine(\"vm created list \" + getVmList().size());\n\nfor (Vm vm : getVmList()) {\nLog.printLine(CloudSim.clock() + \": \" + getName() + \": Destroying VM #\" + vm.getId());\n//sendNow(getVmsToDatacentersMap().get(vm.getId()), CloudSimTags.VM_DESTROY, vm);\nsendNow(vm.ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return true if this AdditionalCommission object is equal to o. | @Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AdditionalCommission additionalCommission = (AdditionalCommission) o;
return Objects.equals(this.balanceAccountId, additionalCommission.balance... | [
"public boolean equals(Object o) {\n\t\treturn (o instanceof TrueFormula);\n\t}",
"public boolean equals(Operateur o) {\n\t\t\treturn this.nom.equals(o.nom); \n\t\t}",
"public boolean equals(Object o) {\r\n if(!(o instanceof Account)) {\r\n return false;\r\n }\r\n Account a = (Ac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
SEARCH /_search/pgmsAppRetirmntPens/:query > search for the pgmsAppRetirmntPen corresponding to the query. | @RequestMapping(value = "/_search/pgmsAppRetirmntPens/{query}",
method = RequestMethod.GET,
produces = MediaType.APPLICATION_JSON_VALUE)
@Timed
public List<PgmsAppRetirmntPen> searchPgmsAppRetirmntPens(@PathVariable String query) {
return StreamSupport
.stream(pgmsAppRetirmnt... | [
"Page<Tbc_proprietario> search(String query, Pageable pageable);",
"public void search() {\n try {\n for(int i = 0; i < this.queries.size(); i++){\n search(i);\n // in case of error stop\n if(!this.searchOK(i)){\n Sy... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of setAcceptLanguage method, of class Request. | @Test
public void testSetAcceptLanguage() {
System.out.println("setAcceptLanguage");
String acceptLanguage = "";
Request instance = null;
instance.setAcceptLanguage(acceptLanguage);
// TODO review the generated test code and remove the default call to fail.
fail("The ... | [
"@Test\n public void testGetAcceptLanguage() {\n System.out.println(\"getAcceptLanguage\");\n Request instance = null;\n String expResult = \"\";\n String result = instance.getAcceptLanguage();\n assertEquals(expResult, result);\n // TODO review the generated test code a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a public.qs table reference | public Qs() {
this("qs", null);
} | [
"public QPHashTable() \r\n { \r\n super(); \r\n }",
"PivotTable createPivotTable();",
"private void createObjectQueryTable() throws SQLException\n {\n if (!database().hasTable(\"ObjectQuery\"))\n {\n log.info(\"creating table ObjectQuery\");\n\n database().execu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ set blue component to the value of red component, green component to the value of blue component, and red component to the value of green component,of each pixel between the provided indices Input: start the index of the first pixel to be modified (inclusive) end the index of the last pixel to be modified (inclusive)... | public void myFilter(int start, int end)
{
Pixel[] originPixel = this.getPixels();
//loop through all pixels in the calling object and parameter
for(int index=start;index<=end;index++){
originPixel[index].setGreen(originPixel[index].getBlue());
originPixel[index].setBlue(originPixel[index].ge... | [
"void setPaletteIndex(int index, int red, int green, int blue);",
"void changeColor(Shape s, float red, float blue, float green, int start, int end);",
"void setPixel( int pixel, int red, int green, int blue );",
"public void grayscale(int start, int end)\n {\n Pixel[] originPixel = this.getPixels();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Apache iBATIS ibator. This method returns the value of the database column MEDICAL.JZ_MEDICALAFTER_RULE.ZY_SCALE5 | public BigDecimal getZyScale5() {
return zyScale5;
} | [
"public float getMaxCY5();",
"public java.lang.String getScale()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get stdout and stderr logs from container. | public void getContainerLogs(final GetContainerLogsParams params, MessageProcessor<LogMessage> containerLogsProcessor)
throws IOException {
try (DockerConnection connection = connectionFactory.openConnection(dockerDaemonUri)
.method("GET")
... | [
"@Test\n public void logStdout() throws Exception {\n final Logs logs = new RtLogs(\n Mockito.mock(Container.class),\n new AssertRequest(\n new Response(\n HttpStatus.SC_OK,\n this.prepareMessage(\"stdout logs\")\n )... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Copy a file from to a file to. Us a buffer of DEFAULT_BUFFER_SIZE bytes. | public static void copy(File from, File to) throws IOException
{
copy(from, to, DEFAULT_BUFFER_SIZE);
} | [
"public static void copyFile(File source, File dest, byte[] buffer) throws IOException {\n FileInputStream in = new FileInputStream(source);\n try {\n FileOutputStream out = new FileOutputStream(dest);\n try { copyInputStream(in, out, buffer); }\n finally { out.close(); }\n }\n finally { ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns HTML with an error message if the last name is invalid. | public String getInvalidLastNameMessage() {
if (invalidLastName) {
return getInvalidMessage(INVALID_LAST_NAME_MSG);
}
return "";
} | [
"private void validateLastName() {\n mLNameValidator.processResult(\n mLNameValidator.apply(binding.editLast.getText().toString().trim()),\n this::validateNickname,\n this::handleLastNameError);\n }",
"private void handleLastNameError(ValidationResult result)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set the star images based on rating amount | public void setRatingStars(double rating) {
int roundedRating = (int)Math.floor(rating);
if(roundedRating == 1) {
ratingStar1.setImageResource(R.drawable.ic_baseline_star_24px);
ratingStar2.setImageResource(R.drawable.ic_baseline_star_border_24px);... | [
"private void setRatingImage(String rating){\n try {\n int rating_start = Integer.parseInt(rating);\n if (rating_start == 0) aboutWashRating.setImageResource(R.drawable.rating_star_null);\n if (rating_start == 1) aboutWashRating.setImageResource(R.drawable.rating_star_one);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Select Cost Item model by pk method getCostItemListByPK | public CostItemModel getCostItemByPK(CostItemPK costItemPK) throws AAException, RemoteException; | [
"public List<CostItemModel> getCostItemModelListByPKList(List<CostItemPK> costItempkList) throws AAException;",
"public Collection getCostItemListByPK(CostItemPK costItemPK) throws AAException, RemoteException;",
"public CostItemModel getCostItemByPKSatatus(CostItemModel costItemModel) throws AAException, Remo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The interface defining all the services for WorkloadsClientMonitors to be used by the proxy service to perform REST calls. | @Host("{$host}")
@ServiceInterface(name = "WorkloadsClientMonit")
public interface MonitorsService {
@Headers({"Content-Type: application/json"})
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.Workloads/monitors")
@ExpectedResponses({200})
@UnexpectedResponseExceptionT... | [
"MonitorsClientImpl(WorkloadsClientImpl client) {\n this.service = RestProxy.create(MonitorsService.class, client.getHttpPipeline(), client.getSerializerAdapter());\n this.client = client;\n }",
"ConnectionMonitorsClient(ConnectionMonitorsImpl serviceClient) {\n this.serviceClient = servic... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column t_report.final_tag | public void setFinalTag(Integer finalTag) {
this.finalTag = finalTag;
} | [
"public Integer getFinalTag() {\n return finalTag;\n }",
"public void setEndTag(JspTag endTag) {\n this.endTag = endTag;\n }",
"public void setEndTagChar(char end_tag) {\n\t\tthis.end_tag = end_tag;\n\t}",
"public void setFinalInd(java.lang.String finalInd)\n {\n synchronized (monitor(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a label with given property data source and mode. | public NonEmptyLabel(Property<?> source, ContentMode mode) {
super(source, mode);
} | [
"private Label initLabel(WDK_PropertyType labelProperty, String styleClass) {\r\n PropertiesManager props = PropertiesManager.getPropertiesManager();\r\n String labelText = props.getProperty(labelProperty);\r\n Label label = new Label(labelText);\r\n label.getStyleClass().add(styleClass)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test the flatten transform where the field is not an array | @TestAnnotation()
public TestResult flattenNonArray(Object arg) throws IOException
{
Transform transform = new Transform(this.data).flatten("sex");
return TestResult.result(CommonTest.DATA_SIZE, transform.getDataSet().size());
} | [
"@TestAnnotation()\n public TestResult flattenNoField(Object arg) throws IOException\n {\n Transform transform = new Transform(this.data).flatten(\"foobar\");\n return TestResult.result(CommonTest.DATA_SIZE, transform.getDataSet().size());\n }",
"@Test\n public void testNullArray()\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the sync version of this dm gt status. | @Override
public void setSyncVersion(java.lang.String syncVersion) {
_dmGtStatus.setSyncVersion(syncVersion);
} | [
"@Override\n\tpublic java.lang.String getSyncVersion() {\n\t\treturn _dmGtStatus.getSyncVersion();\n\t}",
"@Override\n\tpublic void setSyncVersion(java.lang.String syncVersion) {\n\t\t_dmGTShipPosition.setSyncVersion(syncVersion);\n\t}",
"@Override\n\tpublic void setSyncVersion(java.lang.String syncVersion) {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
On room button click, show the schedule for that room and date. | @FXML
public void showRoomSchedule(boolean alreadySelected) {
// Get the selected location if not selected on map
if (!alreadySelected) {
ReservableSpace curr = (ReservableSpace) reservableList.getSelectionModel().getSelectedItem();
currentSelection = curr;
}
... | [
"private static void printScheduleRoom() {\n\t\t//Read in schecdule start date\n\t\tString pStartDate = inputOutput(\"\\nPlease enter the start date of room schedule to print, formatted as MMDDYYYY: \");\n\t\t//Read in schedule start date\n\t\tString pEndDate = inputOutput(\"\\nPlease enter the end date of room sch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
When a membershipattributes element is finished, the arguments for constructing the MembershipAttributes are on the stack. | private void endMembershipAttributes() {
Set roles = new HashSet();
Object obj = null;
while (!(obj instanceof Object[])) {
obj = stack.pop();
if (obj instanceof String) {
// found a required-role name
roles.add(obj);
}
}
Object[] attrs = (Object[]) obj;
String... | [
"private void startMembershipAttributes(Attributes atts) {\n Object[] attrs = new Object[2]; // loss-action, resumption-action\n attrs[0] = atts.getValue(LOSS_ACTION) == null ? LossAction.NO_ACCESS.toString()\n : atts.getValue(LOSS_ACTION);\n attrs[1] = atts.getValue(RESUMPTION_ACTION) == null ? Res... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
MyIterator tipinde bir obje dondurur. | @Override
public Iterator iterator(){
return new MyIterator(this);
} | [
"private Iterator<Item> iterator() {\n return new ArrayIterator(this.objects);\n }",
"@Override\n public Iterator<T> postOrden(){\n return (super.postOrden());\n }",
"@Override\r\n public Iterator<T> iterator(){\r\n return new lenkeListeIterator();\r\n }",
"@Overrid... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test que comprueba que si se busca por String algo que no esta, devuelve una lista vacia. | @Test
public void testBuscarStringSinCoincidencias() {
List<Elemento> lista = new ArrayList<Elemento>();
lista = _raiz.buscar("Coche");
assertTrue(lista.isEmpty());
} | [
"public void testGetStringList_notFound() {\r\n List<String> result = getStringList(\"xxxx\", testProperties);\r\n assertTrue(result.isEmpty());\r\n }",
"@Test\r\n\tpublic void testBuscarStringConCoincidencias() {\r\n\t\tList<Elemento> lista = new ArrayList<Elemento>();\r\n\t\tlista = _raiz.busca... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method checks that with the given parameters, the max PCI and IDE limits defined are not passed. | public static <T extends Disk> boolean checkPciAndIdeLimit(int monitorsNumber, List<VmNetworkInterface> interfaces,
List<T> disks, ArrayList<String> messages) {
boolean result = true;
// this adds: monitors + 2 * (interfaces with type rtl_pv) + (all other
// interfaces) + (all disks ... | [
"private void checkLimits() {\r\n /*\r\n * since the shooter spins forward with negative speeds, 0 is the largest\r\n * possible speed without spinning backwards. this check makes sure the\r\n * wheel can only be stopped or rotating forwards\r\n */\r\n setValue = Math.m... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Position__Group__3" $ANTLR start "rule__Position__Group__3__Impl" InternalDroneScript.g:5156:1: rule__Position__Group__3__Impl : ( ',' ) ; | public final void rule__Position__Group__3__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDroneScript.g:5160:1: ( ( ',' ) )
// InternalDroneScript.g:5161:1: ( ',' )
{
// InternalDroneScript.g:51... | [
"public final void rule__Position__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:5106:1: ( ( ',' ) )\r\n // InternalDroneScript.g:5107:1: ( ',' )\r\n {\r\n // ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
a method to add inactive jobapplications back to the startview, does so by fetching active jobapplications through iterating over the vanilla jobapplications list in the Utilsclass | public void addInactiveApps() {
Utils.setOriginalList(applicationController.getFilename());
List<JobApplication> list = new ArrayList<JobApplication>();
list = Utils.getOriginalList();
for(JobApplication app : list) {
if(!app.isActive()) {
applicationController.getApplications().add(app);
}
}
} | [
"public void addActiveApps() {\n\t\tUtils.setOriginalList(applicationController.getFilename());\n\t\tList<JobApplication> list = new ArrayList<JobApplication>();\n\t\tlist = Utils.getOriginalList();\n\t\tfor(JobApplication app : list) {\n\t\t\tif(app.isActive()) {\n\t\t\t\tapplicationController.getApplications().ad... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generate code for a "skip" statement | public Code visitSkipNode(StatementNode.SkipNode node) {
beginGen("Skip");
Code code = new Code();
endGen("Skip");
return code;
} | [
"SkipStatement createSkipStatement();",
"public void skip();",
"public void setSkip(int skip){\n this.skip = skip;\n }",
"public void skip() {\r\n if (V[(opcode & 0x0F00) >> 8] != V[(opcode & 0x00F0) >> 4]) {\r\n pc += 4;\r\n } else {\r\n pc += 2;\r\n }\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Marker interface for all UseCaseControllers. A UseCaseController is a facade with methods for accomplishing a specific use case. See C. Larman, Applying UML And Patterns. Assign the responsibility for receiving or handling a system event message to a class representing a usecase scenario. | public interface UseCaseController {
} | [
"public interface BeverageController {\n /**\n * Beverage controller states.\n * \n * @author Christopher D. Canfield\n */\n public enum State {\n READY,\n MAKING_DRINK\n }\n \n /**\n * Returns the current state of the beverage controller.\n * @return the current state of the beverage control... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column TBL_URI01_HEAD.Hin_Kakaku_Bunrui_Code | public String getHinKakakuBunruiCode() {
return hinKakakuBunruiCode;
} | [
"public String getBunruiCode() {\n return bunruiCode;\n }",
"public void setHinKakakuBunruiCode(String hinKakakuBunruiCode) {\n this.hinKakakuBunruiCode = hinKakakuBunruiCode;\n }",
"public String getJP_BankDataCustomerCode1();",
"public String getJP_BankDataCustomerCode2();",
"public String getBere... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes all the clients where name = &63; and lastName = &63; from the database. | public void removeByFullName(String name, String lastName); | [
"public static void removeAllPersons() {\r\n\t\tDatabaseInfo data = new DatabaseInfo();\r\n\t\ttry{\r\n\t\t\tPreparedStatement ps = null;\r\n\t\t\tConnection conn = data.getCon();\r\n\t\tps = conn.prepareStatement(\"SET SQL_SAFE_UPDATES=0\");\r\n\t\tResultSet rs = ps.executeQuery();\r\n\t\tps = conn.prepareStatemen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Override to indicate that clone is not supported for this object. | public boolean isCloneSupported() {
return true;
} | [
"@Override\n protected Object clone() throws CloneNotSupportedException {\n return super.clone();\n }",
"@Override\n protected Control clone() {\n \n try {\n return (Control)super.clone();\n } catch (CloneNotSupportedException ex) {\n // Never happens, on... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column cs_outp_emr.marry | public void setMarry(String marry) {
this.marry = marry;
} | [
"public String updateMR() throws Exception {\r\n\t\t\r\n\t\tString mode = dao_impl.updateMR(addMRPojo);\r\n\t\taddMRPojo.setMode(mode);\r\n\t\t\r\n\t\tSystem.out.println(\"mode --> \"+addMRPojo.getMode());\r\n\t\t\r\n\t\treturn \"SUCCESS\";\t\r\n\t}",
"public void setM_RMA_ID (int M_RMA_ID);",
"public void setR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for the login error | public void setLoginError(boolean result){
this.logError=result;
} | [
"void setPasswordError(final String error);",
"public void setLoginError(String errorMessage){\n //TODO: hacer que debajo de los campos de texto aparezca un mensaje en rojo que diga \"Nombre de usuario o contraseña incorrectos\"\n String[] options = { \"OK\" };\n JOptionPane.showOptionDialog(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column reportprocess.successcount | public Integer getSuccessCount() {
return successCount;
} | [
"public Integer successCount() {\n return this.successCount;\n }",
"public Integer getSuccessCount() {\n return successCount;\n }",
"public java.lang.Integer getTotalSuccessCount() {\n return totalSuccessCount;\n }",
"public java.lang.Integer getTotalSuccessCount() {\n return tota... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column IMAL141_DEV_O18.S_CONTROL_PARAM.ADD_STRING4_SMART_DEFAULT | public String getADD_STRING4_SMART_DEFAULT() {
return ADD_STRING4_SMART_DEFAULT;
} | [
"public String getADD_STRING2_SMART_DEFAULT() {\r\n return ADD_STRING2_SMART_DEFAULT;\r\n }",
"public String getADD_STRING1_SMART_DEFAULT() {\r\n return ADD_STRING1_SMART_DEFAULT;\r\n }",
"public void setADD_STRING4_SMART_DEFAULT(String ADD_STRING4_SMART_DEFAULT) {\r\n this.ADD_STRING... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Treat topic string as stream ; sink to another topic without any transformation | private static void s1(StreamExecutionEnvironment env, Properties inboundKafkaConsumerProps, String topicIn, String outboundKafkaSinkBootStrapServers, String topicOut) throws Exception {
DataStream<String> stream_kafkaTopic = KafkaStreamSample.getKafkaStream(env, inboundKafkaConsumerProps, topicIn);
Ka... | [
"OutgoingStream<T> withTopic(String topic);",
"public void onPublish(UTF8Buffer topic, Buffer payload, Runnable ack) {\n\t\t ack.run();\r\n\t\t System.out.println(\"topic\"+topic.toString()+\"=\"+new String(payload.getData()));\r\n\t\t }",
"public TopicDto(String topic) {\n S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handle the given indicator read from the kern file. | private void handleIndicator(String indicator, int lineNum) throws IOException {
// Indicator
if (indicator.startsWith("*MM")) {
// Tempo marker
int qpm;
try {
qpm = Integer.parseInt(indicator.substring(3));
} catch (NumberFormatException e) {
throw new IOException("Tempo \"" + indicator + ... | [
"public IPIndicator getIndicator(int indicatorID);",
"@Override\n\tprotected void doReadSegmentInfos(IDirectory dir, ISegmentInfos infos, String segmentFileName) \n\t\t\tthrows CorruptIndexException, IOException { \n\t\tdoRead(dir, (SegmentInfos)infos, segmentFileName);\n\t}",
"public void setOperationalIndicat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Encode the given object id. | public static String encodeObjectId(String objectId) {
if (objectId != null) {
return objectId.replace(FORWARD_SLASH, FORWARD_SLASH_ENCODED2);
}
return objectId;
} | [
"private String encodeIdentifier(String id) throws Hexception {\n\t\ttry {\n\t\t\treturn OAIUtils.encode(id);\n\t\t} catch (Exception e) {\n\t\t\tthrow new Hexception(e.getMessage());\n\t\t}\n\t}",
"String encode(Object obj);",
"Object encodeObject(Object value);",
"void writeObjectId(ObjectId objectId);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns whether the game has changed | public boolean isGameChanged() {
return gameChanged;
} | [
"public boolean isGameUpdated() {\n if (gameUpdated) {\n gameUpdated = false;\n return true;\n }\n return false;\n }",
"public boolean isGameLost() {\r\n \t //TODO\r\n \t return false;\r\n }",
"public boolean hasChanged() {\r\n return las... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the root outline node. | OutlineNode getRoot(); | [
"public RBNode getRoot() {\r\n return root;\r\n }",
"public Node get_root() {\r\n return get_root(false);\r\n }",
"public Node getRoot() {\r\n return root;\r\n }",
"public VerticalNode getRoot() {\n return root;\n }",
"public DialogueNode getRoot() {\n\t\treturn root;\n\t}"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
makes a textview editable | private EditText makeEditable(View layoutItemView) {
EditText editableItem = new EditText(mContext);
editableItem.setText(((TextView) layoutItemView).getText());
editableItem.setId(layoutItemView.getId());
return editableItem;
} | [
"private void enableTextF() {\n this.textFields.forEach(v -> {\n v.setEditable(true);\n });\n }",
"private void showThatEditable() {\n\t\tTextView tv = new TextView(this);\n\t\ttv.setText(\"You may now edit this recipe!\");\n\t\tAlertDialog.Builder alert = new AlertDialog.Builder(this)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fields with alternates replace them, so the alternates should no longer show up | private void makeAlternateFieldsNotChoosable() {
for (Field f : (Collection<Field>) getAllFields()) {
String alternate = f.getAlternateId();
if (alternate != null) {
Field alt = getFieldFromId(alternate);
if (alt != null)
alt.setNotChoosable(true);
}
}
} | [
"public static String optimizeAlternation(List<String> alternations) {\n return optimizeAlternationHelper(new ArrayList<>(alternations), 0, new StringBuilder());\n }",
"public String getAndOr();",
"public void highlightAdjacentFields(Field field, boolean flag) {\n\t\t// try {\n\t\t// List<Field> neigh... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates the list of borrowers. | private void updateBorrowerList() {
borrowerList.clear();
borrowerList.addAll(handler.listBorrowers());
} | [
"private void updateLoanBorrowers() {\n loanBorrowers.clear();\n loanBorrowers.addAll(borrowerList);\n }",
"public void setBorrowers(int borrowers)\n {\n this.borrowers = borrowers;\n }",
"public void setBorrower(ArrayList<String> borrower) {\n this.borrower = borrower;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
retreat when CR is 40% (possible malfunctions) | public CRLevelLowRetreat() {
super(0.4f);
} | [
"public void Cooler() {\n if (state.getCpuTemp() > 60.00) {\r\n System.out.println(\"> Increasing cooling of the CPU...\");\r\n }\r\n }",
"private void aterrar(){\n\t\tspeed -= ACCELERACIO;\n\n\t\tif (speed == VEL_PISTA) estat = Estat.GOFINGER;\n\t}",
"public static double calcCpRege... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Wrapper function to openSquare, it removes the flag from arraylist as well | public boolean OpenUnflagMine(int x, int y)
{
if (!openSquare(x,y,gameMap))
{
System.out.println("Fail to open during game");
return false;
}
else
{
Point2D match_point = new Point2D.Double(x,y);
for (int i=0;i<unsolvedMineCoor.... | [
"public ArrayList<Square> checkForChecksandPinned(ArrayList<Square> pos){\n\n\n\t\t\tfor(int i=0; i<pos.size();i++){\n\t\t\t\t//Make hypothetical\n\t\t\t\tChessBoard cb = new ChessBoard(this.cb);\n\t\t\t\tcb.updateThreats();\n\t\t\t\t\n\t\t\t\tint px = pos.get(i).x;\n\t\t\t\tint py = pos.get(i).y;\n\n\t\t\t\tPiec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
When trade request received | public void onTradeRequest(String name)
{
if(traded_ammount > 0)
{
traded_ammount = 0;
time = System.currentTimeMillis();
}
int[] player = getPlayerByName(name);
int player_id = getPlayerPID(player[0]);
sendTradeRequest(player_id);
} | [
"public abstract boolean onTradeRequest();",
"public void trade() {\n //This method will be implemented in a later version\n }",
"public void trade() {\n\t}",
"public void trade(TradeOffer offer) {\n\n }",
"void recordTrade(Trade trade);",
"public GameInfo offerTrade(OfferTrade request) throw... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the matching CalendarDates records by fetching from your MySQL instance. This runs a SELECT statement and returns a list of matching CalendarDatess. | public List<CalendarDates> getCalendarDatesByPresident(President president) throws SQLException {
List<CalendarDates> calendarDates = new ArrayList<CalendarDates>();
String selectCalendarDates =
"SELECT CalendarDates, President " +
"FROM CalendarDates " +
"WHERE President=?;";
Connection connection = n... | [
"public List<CalendarEntry> retrieve (Interval searchInterval);",
"public List<CalendarDate> getCalendarDates(CalendarDate calendarDate);",
"@GET\n List<Calendar> getCalendars(@QueryParam(\"q\") String query,\n @QueryParam(\"skip\") @DefaultValue(\"0\") int skip, @QueryParam(\"max\") @DefaultValue... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use BattlePartySettingsProto.newBuilder() to construct. | private BattlePartySettingsProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"private ContactSettingsProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"com.openmdmremote.harbor.HRPCProto.SettingsOrBuilder getSettingsOrBuilder();",
"Pokemon.ContactSettingsProtoOrBuilder getSettingsOrBui... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates the KieSession with the given name for this KieContainer using the given Environment and configuration | KieSession newKieSession(String kSessionName, Environment environment, KieSessionConfiguration conf); | [
"KieSession newKieSession(String kSessionName, Environment environment);",
"KieSession newKieSession(String kSessionName, KieSessionConfiguration conf);",
"KieSession newKieSession(Environment environment, KieSessionConfiguration conf);",
"KieSession newKieSession(String kSessionName);",
"StatelessKieSessio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column public.Quest14.col7value | public void setCol7value(String col7value) {
this.col7value = col7value == null ? null : col7value.trim();
} | [
"public void setCol7(String col7) {\r\n this.col7 = col7;\r\n }",
"public String getCol7value() {\n return col7value;\n }",
"public void setValue6(String value)\n {\n value6 = value;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField7(java.lang.CharS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finds a gesture by id | public static Gestures getGestureById(int id){
for(Gestures gesture: Gestures.values()){
if( gesture.getGestureNumber() == id){
return gesture;
}
}
return null;
} | [
"@Transactional(readOnly = true) \n public Gesture findOne(Long id) {\n log.debug(\"Request to get Gesture : {}\", id);\n Gesture gesture = gestureRepository.findOne(id);\n return gesture;\n }",
"private SpeedDialActionItem findActionItem(int id) {\r\n for (SpeedDialActionItem it... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Search for the image corresponding to the query. | List<Image> search(String query); | [
"public List<File> searchImagesFor(String keyword);",
"public static Image getImageBySearchTerm(String searchTerm) throws SQLException {\n System.out.println(\"Start getImageBySearchTerm\");\n Image result = new Image();\n con = getConnection();\n PreparedStatement pstmt = con.prepareS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy. Check the OnHostMaintenance enum for the list of possible values. optiona... | com.google.protobuf.ByteString getOnHostMaintenanceBytes(); | [
"java.lang.String getOnHostMaintenance();",
"public boolean getMaintenance() {\n return this.maintenance;\n }",
"public int getMaintenanceMode() {\n return maintenanceMode_;\n }",
"public static boolean isServerOnMaintenanceMode() {\r\n return false;\r\n }",
"private void setExitMainte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a count of the current number of repetitions of Special Access Restriction Instructions (ARV5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. | public int getSpecialAccessRestrictionInstructionsReps() {
return this.getReps(5);
} | [
"String getRepetitionCount();",
"public int getArv5_SpecialAccessRestrictionInstructionsReps() {\r\n \treturn this.getReps(5);\r\n }",
"public int getRepetitions() {\n // Get value of key repetitions or one by default\n int repetitions = experiment.optInt(\"repetitions\", 1);\n\n // R... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Table__Group_5__2" $ANTLR start "rule__Table__Group_5__2__Impl" InternalMyDsl.g:2798:1: rule__Table__Group_5__2__Impl : ( ( rule__Table__TitleAssignment_5_2 ) ) ; | public final void rule__Table__Group_5__2__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalMyDsl.g:2802:1: ( ( ( rule__Table__TitleAssignment_5_2 ) ) )
// InternalMyDsl.g:2803:1: ( ( rule__Table__TitleAssignment_5_2 ) )
... | [
"public final void rule__Column__Group_6__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:10578:1: ( ( ( rule__Column__TitleAssignment_6_2 ) ) )\n // InternalMyDsl.g:10579:1: ( ( rule__Column__TitleAssignme... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
checkUrineInfo Verifies that the contents in the Urine Test Panel follow the proper structure | public boolean checkUrineInfo() {
String result[] = new String[10];
result[0] =pH.getText();
result[1] =specific.getText();
result[2] =protein.getText();
result[3] =bilirubin.getText();
result[4] =urobilinogen.getText();
result[5] =blood.getText();
result[6] =glucose.getText();
result[7] =ketone.getT... | [
"@Test\n public void isDisplayedTireSizeVehicleOverlay() throws Exception\n {\n String name = new Object()\n {}.getClass().getEnclosingMethod().getName();\n TestCaseDetail testcase = TestCaseFactory.createTestCaseDetail(this.getClass(), name);\n try\n {\n\n testca... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Count the number of vowels (a, e, i, o, u, y) in the word. | public int getNumberOfVowels() {
// figure out the number of vowels in the word
int count;
count = 0;
char hold;
String word;
word = this.getOriginalString();
for (int idx = 0; idx < word.length(); idx++){
hold = word.charAt(idx);
if (hold == 'A' || hold == 'E' || hold == 'I' ||
hold == 'O' |... | [
"public static int countVowels( String w ) \r\n { int count = 0;\r\n\tfor (int x = 0; x < w.length(); x +=1) {\r\n\t if (isAVowel(w.substring(x,x+1))) {//if that letter is a vowel...\r\n\t\tcount += 1;//add one to the count\r\n\t } //end if\r\n\t}//end for\r\n\treturn count;\r\n }",
"public static int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the indicativeReceiveCurrency value for this ReferenceNumberResponse. | public void setIndicativeReceiveCurrency(java.lang.String indicativeReceiveCurrency) {
this.indicativeReceiveCurrency = indicativeReceiveCurrency;
} | [
"public void setReceiveCurrency(java.lang.String receiveCurrency) {\r\n this.receiveCurrency = receiveCurrency;\r\n }",
"public java.lang.String getIndicativeReceiveCurrency() {\r\n return indicativeReceiveCurrency;\r\n }",
"public void setIndicativeReceiveAmount(java.math.BigDecimal indicat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the selected values choices object. | public List< T > getSelectedValuesChoicesObject() {
return this.selectedValuesChoices;
} | [
"public List< T > getSelectedValuesChoices() {\r\n return selectedValuesChoices;\r\n }",
"public Vector getValueChoices()\n {\n return valueChoices;\n }",
"public List<ChoiceValue> getChoices() {\n return choices;\n }",
"String[] getChoices();",
"public ArrayList<Choice> get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
test if containsPlayer works correctly. | @Test
public void containsPlayer() {
initializePlayerList();
assertTrue(list.containsPlayer("P1"));
assertTrue(list.containsPlayer("P2"));
assertTrue(list.containsPlayer("P3"));
assertFalse(list.containsPlayer("P4"));
} | [
"abstract public boolean doesPlayerExist(String player);",
"@Test\r\n\tpublic void AddPlayersTest() {\r\n\t\tassertFalse(grid.players.containsKey(player5));\r\n\t\tassertTrue(grid.players.containsKey(player2));\r\n\t}",
"public boolean addPlayer(Player player) {\n\tif(player!=null )\n\t{\n\t\t//System.out.print... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
createDNAOutput calculateStringSize calculates the size needed for a string so that it is statistically going to occur just once in a given length of DNA. It then adds the user specified safety margin and returns that value. | private int calculateStringSize(int lengthOfDNA){
int out = 0;
//Determine the size of DNA that is likely to occur only one time
while(Math.pow(4, out) < lengthOfDNA){
out++;
}
//Add the safety margin to further reduce the chances of more then one occurrence of a sequence in the DNA. This a trade o... | [
"Size measureText(String text, double availWidth, double availHeight);",
"int getStringWidth(final String string);",
"java.lang.String getWordSize();",
"public String getCharacterSize() {\n\t\tString result = null;\n\t\tRaces dropDownText = (Races) race.getSelectedItem();\n\n\t\tif (dropDownText.equals(Races.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If true, this transport is assumed stable. | protected boolean isStable() {
return retryCount() == 1;
} | [
"public boolean isBeingTransported() {\n return this.state == State.BEING_TRANSPORTED;\n }",
"public boolean isReliable() {\n return false;\n }",
"public boolean isStable() {\n return isStable(System.currentTimeMillis());\n }",
"protected boolean isStable() {\n boolean stable = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the Security policy at the specified index | public SecurityPolicy get(int index) {
if (!optionals.isEmpty()) addOptionals();
return (SecurityPolicy) info.get(index);
} | [
"public CSP get(int index) {\n return csps.get(index);\n }",
"com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getAuthorizationPolicies(int index);",
"io.bloombox.schema.licensure.Licensure.LicensePrivilege getPrivilege(int index);",
"public io.bloombox.schema.licensure.Licensure.License... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the last frame from this encoding that has been received. | FrameDesc getLastReceivedFrame()
{
return lastReceivedFrame;
} | [
"public byte[] getNextFrame() {\n playCounter++;\n if (playCounter > lastReceivedSeqNr) {\n return null; // Jitter buffer is empty -> finish\n }\n RTPpacket rtp = getNextRtp();\n\n clearStack(playCounter); // reduce the stack\n\n if (rtp == null) {\n return lastPayload; // error conce... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
builder factory method for ShippingMethodSetLocalizedDescriptionAction | public static ShippingMethodSetLocalizedDescriptionActionBuilder builder() {
return ShippingMethodSetLocalizedDescriptionActionBuilder.of();
} | [
"public static ShippingMethodSetLocalizedDescriptionActionBuilder builder(\n final ShippingMethodSetLocalizedDescriptionAction template) {\n return ShippingMethodSetLocalizedDescriptionActionBuilder.of(template);\n }",
"@Generated(value = \"io.vrap.rmf.codegen.rendering.CoreCodeGenerator\", c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
only called by CalculateValues used to calculate the value contribution to this agent from agent p, using Likes, neighbors, and a time component | private double CalculateIndividualSpacialValue(int p, int[][] Grid, int PropI, int PropJ) {
double v = 0;
double dx=0, dy=0;
double discount, neighborx=0, td=0;
int[] L;
int tp;
if (p != ID) {
// find the distance to agent p
L = getOtherAgentPositi... | [
"private void update()\r\n\t{\r\n\t\tfor (Agent agent : agents)\r\n\t\t{\r\n\t\t\tint i = agent.getIndex();\r\n\t\t\tp.setEntry(i, agent.getP());\r\n\t\t\tq.setEntry(i, agent.getQ());\r\n\t\t\tvabs.setEntry(i, agent.getVabs());\r\n\t\t\tvarg.setEntry(i, agent.getVarg());\r\n\t\t\tlambdaP.setEntry(i, agent.getLambda... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes all the moi delete documentses where fileEntryName = &63; from the database. | public void removeByFileEntryName(String fileEntryName); | [
"public java.util.List<MOIDeleteDocuments> findByFileEntryName(\n\t\tString fileEntryName);",
"public java.util.List<MOIDeleteDocuments> findByFileEntryName(\n\t\tString fileEntryName, int start, int end);",
"public void deleteAllFromDB() {\r\n for (int i = 0; i < uploads.size(); i++) {\r\n Fi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ GetDetailsFromDB This method opens the database, and read the details: The web site to open, The search criteria | public static void GetDetailsFromDB() {
try {
//Class.forName(Constants.DB_OBJECT);
Class.forName("com.mysql.jdbc.Driver");
}
catch(ClassNotFoundException ex){}
try {
Connection con = DriverManager.getConnection("jdbc:mysql://sql12.freemysqlhosting.ne... | [
"public void pullDetails() {\n\t\t\n\t\tint userId = Auth.getCurrentUser().getId();\n\t\tString sql = \"select * from PersonalDetails where id='\"+userId+\"'\";\n\t\t\n\t\tconnectToDb();\n\t\t\n\t\ttry(Connection conn = myDb;\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new object of class 'Registration Rule'. | RegistrationRule createRegistrationRule(); | [
"Rule createRule();",
"public RuleFactory() {\n this(new DefaultGenerationConfig(), new Jackson2Annotator(), new SchemaStore());\n }",
"public Registration() {\n\t}",
"Regulator createRegulator();",
"public Registration() {\n\t\tsuper();\n\t}",
"Register createRegister();",
"private static Reg... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns number of "controlPersonsExt" element | int sizeOfControlPersonsExtArray(); | [
"public int sizeOfControlPersonsExtArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(CONTROLPERSONSEXT$34);\n }\n }",
"public int sizeOfControlPersonsArray()\n {\n synchronized (monitor())\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the id meta. | public String getIdMeta() {
return idMeta;
} | [
"public java.lang.Integer getMetaId();",
"public Long getMetaId() {\n return metaId;\n }",
"java.lang.String getID();",
"public void setIdMeta(String idMeta) {\n\t\tthis.idMeta = idMeta;\n\t}",
"@Override\n\tpublic String getId() {\n\t\tString doi = getDoi();\n\t\tif (doi != null && doi.length() >... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if is provides blood. | public boolean isProvidesBlood() {
return providesBlood;
} | [
"boolean hasHasAlcoholBloodContent();",
"public void setProvidesBlood(boolean providesBlood) {\n\t\tthis.providesBlood = providesBlood;\n\t}",
"public boolean checkBloodInfo() {\n\t\tString result[] = new String[5];\n\n\t\tresult[0] = wbc.getText();\n\t\tresult[1] = rbc.getText();\n\t\tresult[2] = hgb.getText()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.google.protobuf.Any action = 1; | com.google.protobuf.AnyOrBuilder getActionOrBuilder(); | [
"com.google.protobuf.Any getAction();",
"com.google.protobuf2.Any getContent();",
"com.google.protobuf.Any getContent();",
"com.google.protobuf2.Any getObject();",
"com.google.protobuf.Any getInputMessage();",
"com.google.protobuf.Any getData();",
"com.google.protobuf.Any getOutputMessage();",
"protoc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prints a representation of the number of wheels and training wheels being added for the particular bike if it has them | private void addWheels() {
if(numWheels != 0) {
System.out.println("Adding " + numWheels + " wheel(s)");
if(hasTrainingWheels) {
System.out.println("Adding training wheels");
}
}
} | [
"private void addWheels(){\n if(numWheels==0){\n //do nothing\n }\n else{\n if(hasTrainingWheels){\n System.out.println(\"Adding training wheels.\");\n }\n System.out.println(\"Adding \" + numWheels + \" wheel(s).\");\n }\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the parent count. | public int getParentCount() {
if (pAddParent == null) {
return 0;
}
return pAddParent.length;
} | [
"public int getParentEntryCount() {\n if (parent != null) {\n return parent.getEntryCount();\n }\n return 1;\n }",
"public int getParentCounter(){\r\n\t\tint returning = parentCounter;\r\n\t\tparentCounter++;\r\n\t\treturn returning;\r\n\t}",
"public int getAncestorCount() { ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the Second Operator that transports Registers, Constants, Memory or Instruction Addresses. | Bit[] getOP2() {
return op2;
} | [
"public int getSecondaryOperator()\n {\n return m_secondaryOperator;\n }",
"public ReilOperand getSecondOperand() {\n return secondOperand;\n }",
"public Node secondEndpoint() {\n\t\treturn second;\n\t}",
"@Override\n public java.lang.Object getSym2() throws G2AccessException {\n java.lan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
testing saveOrder of OrderImpl class | @Test
void testsaveOrder() {
assertEquals(id2,service.saveOrder(ob));
} | [
"void saveOrder(Order order);",
"@Test\n\tpublic void saveOrderLine() {\n\t\t// TODO: JUnit - Populate test inputs for operation: saveOrderLine \n\t\tOrderLine orderline_1 = new ecom.domain.OrderLine();\n\t\tservice.saveOrderLine(orderline_1);\n\t}",
"@Override\n\tpublic Order saveOrder(Order order) {SessionFac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
query top 10 comments related to the selected post | private void queryComments() {
ParseQuery<Comment> allComments = ParseQuery.getQuery(Comment.class);
allComments.whereEqualTo(Comment.KEY_POSTID, currentPost);
allComments.setLimit(10);
allComments.include(Comment.KEY_USERID);
allComments.addDescendingOrder(Comment.KEY_CREATED_AT... | [
"public void getPostWithMostComments(){\n Map<Integer, Integer> postCommentCount = new HashMap<>();\n Map<Integer, Post> posts = DataStore.getInstance().getPosts();\n \n for(Post p: posts.values()){\n for(Comment c : p.getComments()){\n int commentCount = 0;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Makes a new House object of specified height and width at (0,0). Uses recursion to generate a set of rooms of Rooms of random widths and height, in random positions, completely connected by hallways. The number of Rooms + Hallways guaranteed to be generated is determined by numObjectsGenerated in Settings. | public House(int gridWidth, int gridHeight, int levelNum, UpdateManager updateManager)
{
seed = System.currentTimeMillis();
Util.rng = new Random(seed);
this.gridHeight = gridHeight;
this.gridWidth = gridWidth;
this.updateManager = updateManager;
bookshelves = new boolean[gridHeight][gridWidth... | [
"public void BuildRoom(hallway Hallway) {\n for (int i = 0; i < 3; i++) {\n room builtr = new room(Hallway.yBottom - 1, Hallway.yBottom - RANDOM.nextInt(height / 8) - 3, Hallway.xRight + RANDOM.nextInt(width / 8) + 3, Hallway.xLeft - RANDOM.nextInt(width / 8) - 3, 4, 1);\n int x = Hallw... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column old_users.extended12 | public String getExtended12() {
return extended12;
} | [
"public String getExtended6() {\r\n\t\treturn extended6;\r\n\t}",
"public String getExtend6() {\n return extend6;\n }",
"public String getExt6() {\n return ext6;\n }",
"public String getExtended18() {\r\n\t\treturn extended18;\r\n\t}",
"public String getExtended5() {\r\n\t\treturn extend... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'field1037' field | public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField1037(java.lang.CharSequence value) {
validate(fields()[1037], value);
this.field1037 = value;
fieldSetFlags()[1037] = true;
return this;
} | [
"public void setField1033(java.lang.CharSequence value) {\n this.field1033 = value;\n }",
"public void setField1037(java.lang.CharSequence value) {\n this.field1037 = value;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField1033(java.lang.CharSequence value) {\n validate(fiel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'field112' field | public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField112() {
field112 = null;
fieldSetFlags()[112] = false;
return this;
} | [
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField123() {\n field123 = null;\n fieldSetFlags()[123] = false;\n return this;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField232() {\n field232 = null;\n fieldSetFlags()[232] = false;\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
llena la tabla con los datos tomados del objeto Aministrative | public void regTableAdm() throws IOException, ClassNotFoundException {
this.dtmAdm = new DefaultTableModel();
this.dtmAdm.addColumn("Name");
this.dtmAdm.addColumn("Surname");
this.dtmAdm.addColumn("ID");
this.dtmAdm.addColumn("Employee Number");
th... | [
"private void preencherTabela() {\n\t\tList<Cidade> listCidade;\n\t\tCidadeDAO cidadeDAO;\n\t\tObservableList<Cidade> oListCidade;\n\n\t\t// Determina os atributos que irão preencher as colunas\n\t\tcolCidade.setCellValueFactory(new PropertyValueFactory<>(\"nomeCidades\"));\n\t\tcolEstado.setCellValueFactory(new Pr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
OpenStack4j Client which authenticates against version V2 | interface OSClientV2 extends OSClient<OSClient.OSClientV2> {
/**
* Returns the Identity V2 Access object assigned during authentication
*
* @return the Access object
*/
Access getAccess();
/**
* Returns the Identity Service API V2
*
... | [
"interface OSClientV3 extends OSClient<OSClient.OSClientV3> {\n\n\n /**\n * Gets the token that was assigned during authorization\n *\n * @return the authentication token\n */\n Token getToken();\n\n /**\n * Returns the Identity Service API V3\n *... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
find all friendship of a user by userId | @Override
public List<Friendship> findAllByUserId(final int userId) {
try {
List<Friendship> friendships = jdbcTemplate.query(
"select * from Friendship" + " where user_id = ?",
new Object[] {userId},
new FriendshipRepositoryImpl.Friend... | [
"@Query( value =\n \"match (n:User {userId: {0} })-[r:IS_FRIEND_OF]-(friend)-[r2:IS_FRIEND_OF]-(fof) \" +\n \"return distinct fof\")\n Iterable<User> getFriendsOfFriends(String userId);",
"Collection<Friend> findFriendsByUserId(int userId);",
"public List<MyFriendsVO> queryMyFriends(Str... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Exits the current stack context. | public static void exit() {
Context.exit(StackContext.class);
} | [
"private void popContext() {\n getContextsStack().pop();\n }",
"public void exit( )\n \t{\n \t\tif ( context != null )\n \t\t{\n \t\t\tContext.exit( );\n \t\t\tcontext = null;\n \t\t\tcompiledScripts = null;\n \t\t\tscriptExpressionCache.clear();\n \t\t}\n \t}",
"public void leaveScope() {\n sc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a new treble stave to display the specified phrase using the default stave images. | public TrebleStave(final Phrase phrase) {
super(phrase);
} | [
"public TrebleStave(final Phrase phrase, final Images images) {\n super(phrase, images);\n }",
"public TrebleStave(final Images images) {\n super(images);\n }",
"sedML createsedML();",
"private void createText() {\n Texture texture = new Texture(Gdx.files.internal(\"Text/item.png\")... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the "birthplace" element | public void setBirthplace(com.walgreens.rxit.ch.cda.POCDMT000040Birthplace birthplace)
{
synchronized (monitor())
{
check_orphaned();
com.walgreens.rxit.ch.cda.POCDMT000040Birthplace target = null;
target = (com.walgreens.rxit.ch.cda.POCDMT000040Birthplace)get_sto... | [
"public void setBirthPlace(String birthPlace) {\n this.birthPlace = birthPlace;\n }",
"public void setBirthPlace(String birthPlace) {\r\n\t\tthis.birthPlace = birthPlace;\r\n\t}",
"public Builder birthplace(Birthplace birthplace) {\n this.birthplace = birthplace;\n return this;\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setea el profesor de la asignatura | public void setProfesorAsig (Profesor val) {
this.ProfesorAsig = val;
} | [
"public void setIzmenaProfesora(Profesor prof) {\n\t\tfor(Predmet p : predmeti) {\n\t\t\tif(p.getProfesor().getBr_licne() != null) {\n\t\t\t\tif(p.getProfesor().getBr_licne().equals(prof.getBr_licne())) {\n\t\t\t\t\tp.setProfesor(prof);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public FileUploadPDFAzul() {\n segu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |