query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Either generates the trace or reads from somewhere.
public abstract void prepareTrace();
[ "private void writeTrace()\r\n {\r\n TGCreator creator = new TGCreator();\r\n TGTrace trace = creator.createTrace(JVM.getVM(), this.stateGraph);\r\n TraceGraphWriter tgWriter = new TraceGraphWriter(trace);\r\n\r\n if (this.traceCompressed)\r\n {\r\n this.filename += ITraceConstant...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'field484' field. doc for field484
public java.lang.CharSequence getField484() { return field484; }
[ "public java.lang.CharSequence getField484() {\n return field484;\n }", "public void setField484(java.lang.CharSequence value) {\n this.field484 = value;\n }", "public java.lang.CharSequence getField483() {\n return field483;\n }", "public java.lang.CharSequence getField483() {\n return f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds record into the buffer pool
public void addRecord(GISrecord record) { if (record != null) { //if the buffer pool is full //remove the last record in the list before inserting if (bufferPool.size() == maxPoolSize) { bufferPool.removeLast(); bufferPool.addFirst(record); } //if the buffer pool is not full and the record w...
[ "void addRecord(Record record);", "public synchronized void addRecord(PVRecord record) {\n master.addRecord(record);\n }", "public void add(BindRecord record) {\n map.put(record.getPeptide(), record);\n }", "public void addRecord(Record record) {\n recordsList.add(record);\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns short representation of this value.
public short getShortValue() { return numberValue.shortValue(); }
[ "public Short asShort() {\r\n\t\treturn DataConverterRegistry.convert(Short.class, value);\r\n\t}", "public short shortValue() {\n\t\treturn (short) re;\n\t}", "public short toShort()\n {\n return (Short) toClass(Short.class);\n }", "public String getShort() { \n\t\treturn getShortElement().getV...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
check payee account first and last name
private int payeeChecker(String payee, String first_name, String last_name){ try { PreparedStatement find_account = connection.prepareStatement( "select accounts.account, person.firstname, person.lastname" + " from accounts join person on accounts.id =...
[ "protected void validateFirstName(){\n Boolean firstName = Pattern.matches(\"[A-Z][a-z]{2,}\",getFirstName());\n System.out.println(nameResult(firstName));\n }", "java.lang.String getUserFirstName();", "public void firstNameCheck() {\n\t\t\tif (getNameOfTheCard().equalsIgnoreCase(getCustomerFu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Save an interactive chart with stock and bond data as a local HTML file.
public static void saveGraph() throws IOException { // Save graph of asset growth and related curves (stock, bonds, mixed, CPI, etc.). Sequence snpReal = calcSnpReturns(Inflation.Real); snpReal.setName("S&P (real, calculated)"); snpReal._div(snpReal.getFirst(0)); Sequence snpNominal = calcSnpRetu...
[ "public void saveChartToFile(String filename) {\n DOMImplementation domImpl = GenericDOMImplementation.getDOMImplementation();\n Document document = domImpl.createDocument(null, \"svg\", null);\n SVGGraphics2D svgGenerator = new SVGGraphics2D(document);\n jFreeChart.draw(svgGenerator, ne...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__SwitchStmt__Alternatives" $ANTLR start "rule__ForStmt__Alternatives_2" InternalGo.g:3658:1: rule__ForStmt__Alternatives_2 : ( ( ( rule__ForStmt__ConditionAssignment_2_0 ) ) | ( ( rule__ForStmt__ForAssignment_2_1 ) ) | ( ( rule__ForStmt__RangeAssignment_2_2 ) ) );
public final void rule__ForStmt__Alternatives_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalGo.g:3662:1: ( ( ( rule__ForStmt__ConditionAssignment_2_0 ) ) | ( ( rule__ForStmt__ForAssignment_2_1 ) ) | ( ( rule__ForStmt__RangeAssignment_2_...
[ "public final void rule__ForStmt__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:8387:1: ( ( ( rule__ForStmt__Alternatives_2 )? ) )\r\n // InternalGo.g:8388:1: ( ( rule__ForStmt__Alternatives...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the specified time having been worked on the task in the database.
public boolean updateTimeForTask(CountedTime countedTime) throws SQLException;
[ "@Override\n public boolean updateTimeForTask(CountedTime countedTime) throws SQLException{\n return taskManager.updateTimeForTask(countedTime);\n }", "public void saveTimeForTask(Task task, int time, Date startTime, Date stopTime) throws SQLException;", "@Override\n public void saveTimeForTask(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the value associated with the column: exchange_date
public java.util.Date getExchangeDate () { return exchangeDate; }
[ "public java.lang.String getExchangeDate() {\n return exchangeDate;\n }", "public java.lang.String getCurrencyExchangeDate() {\n return currencyExchangeDate;\n }", "Date getDateValue();", "public OffsetDateTime exchangeRateDate() {\n return this.innerProperties() == null ? null : th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of createAssociation method, of class ShoppingCartDAOImpl.
@Test public void testCreateAssociations() { System.out.println("Add new ShoppingCart"); User expectUser = new User("yogamaster", "yogamaster", "Yoga", "Master", "What is your favorit car?", "Benz"); expectUser = userDAO.create(expectUser); Customer...
[ "Association createAssociation();", "@Test\n public void testCreate() {\n System.out.println(\"Add new ShoppingCart\");\n \n User expectUser = new User(\"yogamaster\", \"yogamaster\", \"Yoga\", \"Master\",\n \"What is your favorit car?\", \"Benz\");\n expectUser = use...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the itOrderFulfillmentTime property.
public void setItOrderFulfillmentTime(int value) { this.itOrderFulfillmentTime = value; }
[ "public int getItOrderFulfillmentTime() {\n return itOrderFulfillmentTime;\n }", "public void setOrderTime(Date orderTime) {\n this.orderTime = orderTime;\n }", "public void setOrderTime(Date orderTime) {\r\n this.orderTime = orderTime;\r\n }", "public void setOrdertime(Date orde...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a reference to the application database.
public DB getDatabase() { return mongo.getDB(properties.getDatabaseName()); }
[ "public Database getDatabase() {\n return dbHandle;\n }", "public GraphDatabaseService GetDatabaseInstance() {\r\n\t\treturn _db;\r\n\t}", "public ODatabaseInternal<?> db() {\n return ODatabaseRecordThreadLocal.INSTANCE.get().getDatabaseOwner();\n }", "static DatabaseReference getDBRef() ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete the assistidos by id.
public void delete(Long id) { log.debug("Request to delete Assistidos : {}", id); assistidosRepository.delete(id); assistidosSearchRepository.delete(id); }
[ "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Sintoma : {}\", id);\n sintomaRepository.delete(id);\n }", "public void delete(Long id) {\n log.debug(\"Request to delete AtendimentoDiverso : {}\", id);\n atendimentoDiversoRepository.deleteById(id);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
remove a song from queue
public String remove(int index) throws NullPointerException{ //calls function to find the track at index AudioTrack track = trackAtIndex(index); //if track is in polled, remove track from polled if(polled.contains(track)) polled.remove(track); //if track is in queue, remove trac...
[ "void removeFromQueue(ActionEvent event){\n model.getQueueList().remove(podcast);\n podcast.setQueued(false);\n podcast.togglePlaying();\n cm.hide();\n }", "public void removeSongFromPlaylist(Song song){\n playlistSongs.remove(song);\n numberOfSongs = numberOfSongs - 1...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column tbl_potetialbidder.contactor
public String getContactor() { return contactor; }
[ "public Conctb getConctb() {\r\n\t\treturn conctb;\r\n\t}", "public String getCGINF_LICENCIA_CONDUCIR(){\r\n\t\treturn this.myCginf_licencia_conducir;\r\n\t}", "public Long getContId() {\n return contId;\n }", "public BigDecimal getCONTRIB_PAYABLE_CIF() {\r\n return CONTRIB_PAYABLE_CIF;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Recreate all tables in HBase.
public void recreateAllHTables() { for (String tableName : adapter.getHTableDefs().keySet()) { recreateHTable(tableName); } }
[ "public void recreateHTable(String tableName) {\r\n\t\ttry {\r\n\t\t\tHTableDef htd = adapter.getHTableDefbyName(tableName);\r\n\t\t\tif (hbAdmin.tableExists(tableName)) {\r\n\t\t\t\tHBaseUtil.deleteHTable(this.hbAdmin, tableName);\r\n\t\t\t}\r\n\t\t\tHBaseUtil.creatHTable(this.hbAdmin, tableName,\r\n\t\t\t\t\thtd....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update a batch of objects by index type
public void updateBatch(List<? extends TypedObject> objects, IndexPathInfo indexPathInfo, boolean isIndexerRequest) throws IndexPersistException { this.addDocuments(objects, indexPathInfo, IndexPersistType.UPDATE, isIndexerRequest); }
[ "void updateIndexes();", "public abstract void updateIndex();", "@Override\n public final void updateIndexDocuments(String indexName, String documentType, Map<String, String> documentMap)\n {\n LOGGER.info(\"Updating Elasticsearch index documents, indexName={}, documentType={}.\", indexName, docume...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XIfExpression__Group__6" $ANTLR start "rule__XIfExpression__Group__6__Impl" ../org.xtext.mongobeans.ui/srcgen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:9561:1: rule__XIfExpression__Group__6__Impl : ( ( rule__XIfExpression__Group_6__0 )? ) ;
public final void rule__XIfExpression__Group__6__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:9565:1: ( ( ( rule__XIfExpression__Grou...
[ "public final void rule__XIfExpression__Group__6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:9554:1: ( rule__XIfExpression__Gr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'BElement Structure'.
BElementStructure createBElementStructure();
[ "BElement createBElement();", "BType createBType();", "BPSpecElement createBPSpecElement();", "Structure createStructure();", "B createB();", "protected abstract Structure newStructure();", "BOp createBOp();", "BasicElem createBasicElem();", "ObjectElement createObjectElement();", "BPObject create...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the DepMacOSEnrollmentProfile from the service
void get(final ICallback<? super DepMacOSEnrollmentProfile> callback);
[ "DepMacOSEnrollmentProfile get() throws ClientException;", "ApplicationProfile getApplicationProfile();", "public ProfileService getProfileService()\n {\n return profileService;\n }", "@Nullable\n public AndroidWorkProfileCertificateProfileBase get() throws ClientException {\n return send(Ht...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'Declarator' containment reference. If the meaning of the 'Declarator' containment reference isn't clear, there really should be more of a description here...
Declarator getDeclarator();
[ "AbstractDeclarator getDeclarator();", "Declarator createDeclarator();", "@ASTNodeAnnotation.Child(name=\"VariableDecl\")\n public VariableDeclarator getVariableDecl() {\n return (VariableDeclarator) getChild(2);\n }", "public /*@Nullable*/ VariableTree getDeclaration() {\n return decl;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the last cached task by popping it from the stack.
public CachedTask getLastCachedTask() { return cachedTasks.pop(); }
[ "final Runnable popTask() {\n int s = sp;\n while (s != base) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int i = (s - 1) & mask;\n Runnable t = q[i];\n if (t == null || !casSlotNull...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct a registration results object to be populated with accessors.
public RegistrationResults() { }
[ "com.openmdmremote.harbor.HRPCProto.Registration getRegistration();", "Regulator createRegulator();", "Result findResultByRegistration(Registration registration);", "Register createRegister();", "public RegistryCreator(){\n\n\t\tthis.accounting = new Accounting();\n\t\tthis.inventory = new Inventory();\n\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the city of this candidate.
@Override public void setCity(java.lang.String city) { _candidate.setCity(city); }
[ "public void setCity(final String city)\n {\n this.city = city;\n }", "public void setCity(String c)\n {\n address.setCity(c);\n }", "@Override\n public void setCity(java.lang.String city) {\n _person.setCity(city);\n }", "public void setCity(java.lang.String City) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets whether deleted messages should be hidden.
public boolean getHideDeletedMsg() { return hideDeletedMsg; }
[ "boolean getShowDeleted();", "public void setHideDeletedMsg(boolean hideDeletedMsg) {\n this.hideDeletedMsg = hideDeletedMsg;\n }", "public boolean isMessageDeleted() {\r\n return isMessageDeleted( getMessage() );\r\n }", "public boolean getDeleted() {\n return deleted;\n }", "public Int...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the group ID of this person.
@Override public void setGroupId(long groupId) { _person.setGroupId(groupId); }
[ "public void setGroup(String groupID) {\n _groupID = nullIfEmpty(groupID);;\n }", "public void setGroupID(int groupID) {\n this.groupID = groupID;\n }", "public void setGroupID(int value) {\n this.groupID = value;\n }", "@Override\n public void setGroupId(long groupId) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GENLAST:event_jButtonBeheerBedrijvenActionPerformed Loads all constant values from the database.
private void loadStaticData(){ this.specialisaties = this.dbFacade.getAllSpecialisaties(); this.jComboBoxSpecialisatie.setModel(new DefaultComboBoxModel(this.specialisaties.toArray())); this.SpecialisatieSitueert = this.dbFacade.getAllSitueert(); this.jComboBoxSitueert.setModel(new Defau...
[ "public void getFirstValues(ActionEvent e) throws SQLException\n {\n DatabaseConnector connector = new DatabaseConnector();\n Connection connection = DatabaseConnector.getConnection();\n\n if (s9==\"\")\n {\n s9 = tf9.getText();\n }\n\n String sql1 = \"SELECT ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column ecs_takegoods_order.consignee
public String getConsignee() { return consignee; }
[ "public String getConsignee() {\r\n return consignee;\r\n }", "public String getConsigneeNo() {\n return consigneeNo;\n }", "public Integer getConsigneeUserId() {\n return consigneeUserId;\n }", "public String getIdConsignee() {\n return idConsignee;\n }", "public voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Run the Command createCommand(int) method test.
@Test public void testCreateCommand_6() throws Exception { int cmdId = 5; Command result = CommandFactory.createCommand(cmdId); // add additional test code here assertNotNull(result); }
[ "@Test\n\tpublic void testCreateCommand_1()\n\t\tthrows Exception {\n\t\tint cmdId = 0;\n\n\t\tCommand result = CommandFactory.createCommand(cmdId);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testCreateCommand_11()\n\t\tthrows Exception {\n\t\tint cmdId = 10;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .llql_proto.Sample sample = 15;
com.vitessedata.llql.llql_proto.LLQLQuery.Sample getSample();
[ "com.vitessedata.llql.llql_proto.LLQLQuery.SampleOrBuilder getSampleOrBuilder();", "public com.vitessedata.llql.llql_proto.LLQLQuery.SampleOrBuilder getSampleOrBuilder() {\n return sample_;\n }", "public com.vitessedata.llql.llql_proto.LLQLQuery.SampleOrBuilder getSampleOrBuilder() {\n if (sample...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Processes submit_sm, if it has the sar optional parameters. Processed request is then put in the pool of message parts. If all parts for current msisdn are received, they are then concatenated and are put to the report map. In this case, msisdn becomes NOT_BUSY.
public void processSarConcatPart(final SubmitSm submitSm) { String msisdn = submitSm.getDestAddress().getAddress(); String linkId = submitSm.getSourceAddress().getAddress(); int sarTotalSegments = 0; for (int i : submitSm.getOptionalParameter(SmppConstants.TAG_SAR_TOTAL_SEGMENTS).getVal...
[ "public void processPayloadConcatMessage(final SubmitSm submitSm) {\n String destAddress = submitSm.getDestAddress().getAddress();\n\n Tlv messagePayload = submitSm.getOptionalParameter(SmppConstants.TAG_MESSAGE_PAYLOAD);\n byte[] shortMessage = messagePayload.getValue();\n transactionRe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add a value to property additionalType.
Builder addAdditionalType(String value);
[ "@ApiModelProperty(value = \"Generic field containing additional information relevant to the featureType specified. Whether mandatory or not is dependent on the value of featureType\")\n\n\n public String getAdditionalValue() {\n return additionalValue;\n }", "Builder addAdditionalType(URL value);", "Addit...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loads the specified CQL file from the classpath into the database.
public void loadClasspathCypherScriptFile(String cqlFileName) { StringBuilder cypher = new StringBuilder(); try (Scanner scanner = new Scanner(Thread.currentThread().getContextClassLoader().getResourceAsStream(cqlFileName))) { scanner.useDelimiter(System.getProperty("line.separator")); ...
[ "private void loadSqlFile(String fileName) throws Exception {\n\t\tStatement statement = null;\n\t\ttry {\n\t\t\tstatement = connection.createStatement();\n\t\t\t// execute each statement on its own\n\t\t\tList<String> commands = getFileContents(fileName);\n\t\t\tfor (String cmd : commands)\n\t\t\t\tstatement.execu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtiene la lista de Modelos
public ArrayList<Modelo> getListaModelos() { recuperarLista(); return lista; }
[ "public List<Modelo> obtenModelos() {\r\n try {\r\n IntAdmInventario adm = new FacAdmInventario();\r\n\r\n return adm.obtenListaModelos();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return null;\r\n }", "public static Observab...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Spring Data Elasticsearch repository for the DroitaccesDocument entity.
public interface DroitaccesDocumentSearchRepository extends ElasticsearchRepository<DroitaccesDocument, Long> { }
[ "public interface DocumentoSearchRepository extends ElasticsearchRepository<Documento, Long> {\n}", "public interface RecomendacionSearchRepository extends ElasticsearchRepository<Recomendacion, Long> {\n}", "public interface RelatedDocumentSearchRepository extends ElasticsearchRepository<RelatedDocument, Long>...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generates a template schedule that just looks for options for generation
protected void generateTemplateSchedule(Long companyId, Long userId, SchedulingOptions opt) { log.trace("Generating schedule for company [id=" + companyId + "]"); this.opt = opt; List<User> allUsers = getAllUsers(userId); List<Task> allTasks = getAllTasks(companyId); for (Task task : allTasks) { ...
[ "private void scheduleTargetFileGeneration() {\n //Calculate today's fire time\n DateTimeFormatter fmt = DateTimeFormat.forPattern(\"H:m\");\n String timeProp = settingsFacade.getProperty(TARGET_FILE_TIME);\n DateTime time = fmt.parseDateTime(timeProp);\n DateTime today = DateTime...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns an API for modifying the alreadyexisting RowData which has been set on the given ControlWrapper.
public static LayoutsRowData modifyRowData(ControlWrapper wrapper) { return modifyRowData(wrapper.getLayoutData()); }
[ "public static LayoutsRowData setRowData(ControlWrapper wrapper) {\n\t\treturn setRowData(wrapper.getRootControl());\n\t}", "public void setRowDataWrapper(final IWrapper < Object, RowData > theRowDataWrapper) {\r\n this.rowDataWrapper = theRowDataWrapper;\r\n }", "public static LayoutsRowData modifyRo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the keycode for the clear key
public int getClearKeyCode() { // TODO:: return 0; }
[ "@java.lang.Override\n public com.google.cloud.video.livestream.v1.Encryption.Clearkey getClearkey() {\n return clearkey_ == null\n ? com.google.cloud.video.livestream.v1.Encryption.Clearkey.getDefaultInstance()\n : clearkey_;\n }", "public com.google.cloud.video.livestream.v1.Encrypt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set serial line configuration
public abstract void setSerialLineConfiguration(final SerialLineConfiguration config);
[ "void setCfgLinea(String cfgLinea);", "private void setSerialPortParameters() throws IOException {\r\n int baudRate = 57600; // 57600bps\r\n\r\n try {\r\n serialPort.setSerialPortParams(\r\n baudRate,\r\n SerialPort.DATABITS_8,\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets array of all "TrafficVolume" elements
org.landxml.schema.landXML11.TrafficVolumeDocument.TrafficVolume[] getTrafficVolumeArray();
[ "java.util.List<org.landxml.schema.landXML11.TrafficVolumeDocument.TrafficVolume> getTrafficVolumeList();", "org.landxml.schema.landXML11.TrafficVolumeDocument.TrafficVolume getTrafficVolumeArray(int i);", "public org.landxml.schema.landXML11.VolumeDocument.Volume[] getVolumeArray()\r\n {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the first e s f match result in the ordered set where esfPartecipantId = &63; and esfMatchId = &63;.
public static it.ethica.esf.model.ESFMatchResult findBymatchId_PartecipantId_First( long esfPartecipantId, long esfMatchId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, it.ethica.esf.NoSuchMatchResultException { return getPers...
[ "@Override\n\tpublic int getFirst() {\n\t\treturn _esfMatchResult.getFirst();\n\t}", "public static it.ethica.esf.model.ESFMatchResult fetchBymatchId_PartecipantId_First(\n\t\tlong esfPartecipantId, long esfMatchId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the specified theme attr color
@TargetApi(18) public static int getColor(int color){ return themeValues.get(color); }
[ "public static int getThemeColor(Context context, int attribute, int defaultColor) {\n int themeColor = 0;\n String packageName = context.getPackageName();\n try {\n Context packageContext = context.createPackageContext(packageName, 0);\n ApplicationInfo applicationInfo =\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the servicePrincipalKey property: The key of the service principal used to authenticate against Kusto.
public AzureDataExplorerLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { this.servicePrincipalKey = servicePrincipalKey; return this; }
[ "public SecretBase servicePrincipalKey() {\n return this.servicePrincipalKey;\n }", "public AzureMLServiceLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) {\n this.servicePrincipalKey = servicePrincipalKey;\n return this;\n }", "public void setPrincipalId(java.lan...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the class for meaningful class names in log messages If your logger supports instantiating a logger with a class name, the implementation should allow instantiation in this manner. Otherwise, a NOOP implementation is acceptable.
public Logger setLoggerClass(Class<?> clazz);
[ "public Logger setLoggerClass(String className);", "@Test\n public final void testGetClassName()\n {\n AbstractLogger instance = new Logger(String.class);\n assertEquals(\"java.lang.String\", instance.getClassName(), \"values are not equal\");\n\n instance = new Logger(\"java.lang.String\");\n asser...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return true if this table has a column with the given title or id.
public boolean hasColumn(String title);
[ "protected boolean hasColumn(String header){\n return hasColumn(header, false);\n }", "boolean hasColumnAt(int index);", "boolean hasColId();", "boolean hasColNm();", "public boolean isColumn(CaseInsensitiveString data)\n \t{\n \t\tif (!_loading && data != null)\n \t\t{\n \t\t\treturn _columns.containsK...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Reference'.
Reference createReference();
[ "ReferenceProperty createReferenceProperty();", "ReferenceLink createReferenceLink();", "public Reference bindReference(Reference reference) {\n Reference newReference = null;\n \n switch(reference.getType()) {\n case \"article\":\n newReference = new ArticleRefere...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test that store file stores the files in alphabetical order, regardless of when a file was stored
@Test public void testStoreFileAlphabetical() { File file1 = new File("c"); File file2 = new File("b"); File file3 = new File("a"); parent.storeFile(file1); parent.storeFile(file2); parent.storeFile(file3); ArrayList<File> output = parent.getStoredFiles(); ArrayList<File> expected = n...
[ "@Test\n public void testStoreFile() {\n\n File file1 = new File(\"file1\");\n File file2 = new File(\"file2\");\n parent.storeFile(file1);\n parent.storeFile(file2);\n ArrayList<File> output = parent.getStoredFiles();\n ArrayList<File> expected = new ArrayList<File>();\n expected.add(file1);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Integration test equivalent of testApplyEffectsPower(). Tests that applyEffects method (from Player) works for "power".
@Test public void testApplyEffectsPowerMockless() { Player player = Player.makePlayer(); HashMap<String, Integer> map = new HashMap<String, Integer>(); map.put("power", 1); ACard powerCard = ACard.makeCard(null, "", "", "Hero", 0, 0, 0, map); assertEquals(0, player.getPower()); player.applyEffects(powerCar...
[ "@Test\n\tpublic void testApplyEffectsPower() {\n\t\tPlayer player = Player.makePlayer();\n\t\tHashMap<String, Integer> map = new HashMap<String, Integer>();\n\t\tmap.put(\"power\", 1);\n\t\tACard powerCard = EasyMock.niceMock(HeroCard.class);\n\t\tEasyMock.expect(powerCard.getEffects()).andReturn(map);\n\t\tEasyMo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test that the LogUnitServer correctly handles a TAIL request. A TAILS_QUERY operation should be added to the BatchProcessor, and the response should contain the result from the completed future.
@Test public void testHandleTail() { RequestMsg request = getRequestMsg( getBasicHeader(ClusterIdCheck.CHECK, EpochCheck.CHECK), getTailRequestMsg(TailRequestMsg.Type.ALL_STREAMS_TAIL) ); TailsResponse tailsResponseExpected = new TailsResponse(1L, 20L, ...
[ "@Test\n public void testHandleRangeWriteLog() {\n RequestMsg request = getRequestMsg(\n getBasicHeader(ClusterIdCheck.CHECK, EpochCheck.CHECK),\n getRangeWriteLogRequestMsg(Collections.singletonList(getDefaultLogData(1L)))\n );\n\n // Prepare a future that can ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the cbSize value for this Menuinfo.
public int getCbSize() { return cbSize; }
[ "public int getComboSize()\n {\n return comboSize;\n }", "public int getSelectedSize() {\n\t\t\treturn resultSize;\n\t\t}", "public int getSetSize(){ return Integer.parseInt(setSize.getText()); }", "private final int getMaxComboSize() {\n\t\treturn (2 + level);\n\t}", "public static byte getSiz...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates boat position when no keys are pressed or when control() is no longer being called (e.g. after the race is over). Boat speed is decreasing (due to drag), position keeps increasing until the speed is below 0. Speed is clamped at 0 when it goes below 0 (or reaches 0)
public void update(){ if (boatStats.getSpeed() > 0){ boatStats.setSpeed(boatStats.getSpeed() - boatStats.getDeceleration()); boatPosition.setPosY(boatPosition.getPosY() + boatStats.getSpeed()); } else { boatStats.setSpeed(0); } }
[ "public void brake(){\n if (speed <= 0){\n speed = 0;\n }\n else{\n speed -= 5;\n }\n }", "public void moveBricks()\n\t{\n\t\tint a, b;\n\t\t// Bounce off the right wall\n\t\tif(locationX + velocityX > maxX )\n\t\t{\n\t\t\ta = maxX - locationX;\n\t\t\tb = veloc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loads the lexicon into a data structure for later use.
public void loadLexicon(String fileName) { if (fileName == null) { throw new IllegalArgumentException("Error reading from file."); } try { lexicon = new TreeSet<String>(); Scanner s = new Scanner(new FileReader(fileName)); while (s.hasNext()) ...
[ "public Lexicon() {\n\t\ttokenForm2index = new TreeMap<String, int[]>();\n\t\tindex2docfreq = new TreeMap();\n\t\tlabels = new ArrayList<String>();\n\t}", "private void convertLexicon() {\t\t\n\t\t\t\n\t\tParameters.reportLineFlush(\"Extracting lexical rules\");\n\t\tlexicon = new Hashtable<String, Double>();\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Online storage is a "realtime" object storage engine such as Riak CS or Amazon S3.
public @Nullable AsyncBlobStoreSupport getOnlineStorageSupport();
[ "ObjectStorageService objectStorage();", "public interface PersistenceStorageEngine {\n /**\n * Save a user overwrite\n *\n * @param path The path for this write\n * @param node The node for this write\n * @param writeId The write id that was used for this write\n */\n public void saveUserOverwrite(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds an annotation_item to a parameter of this Method.
public void addParameterAnnotationItem(int parameterIndex, AnnotationItem annotationItem) { annotatedParameterSetRefList.addAnnotationItem(parameterIndex, annotationItem); }
[ "public void addAnnotationItem(AnnotationItem annotationItem) {\n\t\tannotationSetItem.addAnnotationItem(annotationItem);\n\t}", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E addAnnotation(CtAnnotation<? extends Annotation> annotation);", "public AnnotatedTypeBuilder<X> addToMethodParameter(Met...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
constructor Specifies that xeno1 and xeno2 are incompatible. Once specified as incompatible, the pair can never be specified as being "compatible". In that case, don't throw an exception, simply treat the method invocation as a "noop". A xeno is always compatible with itself, is never incompatible with itself: directiv...
public void setIncompatible(int xeno1, int xeno2) { // fill me in! }
[ "public void setCompatible(int xeno1, int xeno2) {\n // fill me in!\n }", "public boolean areIncompatible(int xeno1, int xeno2) {\n return false; // replace to taste!\n }", "public boolean areCompatible(int xeno1, int xeno2) {\n return false; // replace to taste!\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an ForStatement and pushes it onto the statement stack.
protected ForStatement createForStatement() { ForStatement stmt = new ForStatement(maker); pushStatement(stmt); return stmt; }
[ "ForStatement createForStatement();", "ForStatement(AST ast) {\n super(ast); }", "private ForLoopNode createForTag() {\n\t\tElementVariable Arg1 = getVariable(lexer.nextToken());\n\t\tElement Arg2 = getForArgument(lexer.nextToken());\n\t\tElement Arg3 = getForArgument(lexer.nextToken());\n\t\t\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns true if anyString pattern can consume this token
public boolean matchAnyString() { return false; }
[ "private boolean isString() {\n\t\treturn ((type == TERMINAL) && (terminal instanceof TPatternString));\n\t}", "public abstract boolean isSingleCharMatcher();", "private boolean isStringSequence() {\n\t\treturn ((type == TERMINAL) && (terminal instanceof TPatternStringSequence));\n\t}", "private boolean STRIN...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the solenoid field
public Solenoid getSolenoid() { return _solenoid; }
[ "public Number getSolineId() {\n return (Number)getAttributeInternal(SOLINEID);\n }", "java.lang.String getField1515();", "public Number getOeSolineId() {\n return (Number) getAttributeInternal(OESOLINEID);\n }", "java.lang.String getField1671();", "java.lang.String getField1307();", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add a transaction to the HashMap of transactions where the id is the key
public void addTransaction(Transaction t) { transactions.put(t.getId(), t); }
[ "public void addTransaction(Transaction tx) {\n // IMPLEMENT THIS\n }", "public void addTransaction(CustomerTransaction cust) {\n history.add(cust);\n }", "public void addTransaction(TransactionId tid, Permissions pms){\n\tif(tid != null){\n\t Transaction tas = new Transaction(tid, pms);\n\t thi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor, create a new adapter with a list of color and a list of smiley
public PageAdapter(FragmentManager mgr, int[] colors, int[] smiley){ super(mgr); this.colors = colors; this.smiley = smiley; }
[ "public Smiley(Color eyesColor, Color smileColor, Color outlineColor, Color skinColor) \n {color1 = eyesColor;\n color2 = smileColor;\n color3 = outlineColor;\n color4 = skinColor;\n }", "IngredientsAdapter(ArrayList<String> ingredients, Context context) {\n\n this.ingredients = ingredien...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Insert a new partner into database
AdPartner insertAdPartner(AdPartner adPartner);
[ "public int insertPartner(Address addressObj, User userObj, Partner partnerObj)\n\t{\n\t\t// Keep the result came from DB\n\t\tint recordId = -1;\n\n\t\t// Open connection to DB\n\t\tMySql db = new MySql();\n\t\tConnection con = db.openConnection();\n\n\t\t// Select into DB\n\t\tString sql = \"{CALL sp_insert_parce...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes the given isotope from the MolecularFormulaExpand.
@TestMethod("testRemoveIsotope_IIsotope") public void removeIsotope(IIsotope isotope) { isotopesMax.remove(getIsotope(isotope)); isotopesMin.remove(getIsotope(isotope)); }
[ "public boolean supprimerMagasin(int id);", "public void remover(Pais pais);", "public Value.Builder clearJamMulai() {\n fieldSetFlags()[2] = false;\n return this;\n }", "void unsetSpecimen();", "public void removeSpecimen(int i)\n {\n synchronized (monitor())\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
string indicating billing order. Mandatory.
public String getBillingOrder() { if (billingOrder == null) return ""; return billingOrder; }
[ "public java.lang.String getBilling_def() {\n return billing_def;\n }", "java.lang.String getClientOrderIdBuy();", "String billingPartNumber();", "java.lang.String getSupplyOrderNumber();", "java.lang.String getClientOrderId();", "@Override\n\tpublic java.lang.String getBillingName() {\n\t\tretu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct a MineSweeper of any size that has numberOfMines randomly set so we get different games.
public MineSweeper(int rows, int columns, int numberOfMines) { Random generator = new Random(); int x; int y; boolean[][] mines = new boolean[columns][rows]; for (int i = 0; i < Math.min(numberOfMines, columns*rows); i++) { do { x = generator.nextInt(rows); ...
[ "public MineSweeper(boolean[][] mines) {\r\n board = new GameSquare[mines.length][mines[0].length];\r\n \r\n for (int i = 0; i < mines.length; i++) {\r\n \tfor (int j = 0; j < mines[0].length; j++) {\r\n \t\tboard[i][j] = new GameSquare(mines[i][j], i, j);\r\n \t\tif (board[i][j].isMine) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__EvaluationExpressionOut__Group__0" $ANTLR start "rule__EvaluationExpressionOut__Group__0__Impl" ../com.blasedef.onpa.ONPA.ui/srcgen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:4486:1: rule__EvaluationExpressionOut__Group__0__Impl : ( () ) ;
public final void rule__EvaluationExpressionOut__Group__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:4490:1: ( ( () ) ) // .....
[ "public final void rule__EvaluationExpressionOut__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:4478:1: ( rule__EvaluationExpr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Configure Solrj to use Kerberos authentication via SPNEGO/GSSAPI for client requests. Client Kerberos credentials for the supplied Principal will be retrieved from specified keytab file. Additionally, all HTTP requests performed as part of the authentication negotiation will use SSL encryption and use the supplied SSLC...
public static void initAuthentication(AuthenticationOptions options) { logger.info("Registering custom HTTPClient authentication with Solr"); SpnegoAuthenticatorFactory authenticatorFactory = new SpnegoAuthenticatorFactory.Builder() .keytab(options.keytab...
[ "private void initKerberos(String keytabFile, String principal) {\n if (keytabFile == null || keytabFile.length() == 0) {\n throw new IllegalArgumentException(String.format(\"Setting keytab file path required when kerberos is enabled. Use %s configuration entry to define keytab file.\", HBASE_REGIONSERVER_K...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the keyboard accelerator for this option.
public KeyStroke getAccelerator() { return (KeyStroke) getValue(ACCELERATOR_KEY); }
[ "public KeyStroke getAccelerator() {\n return this.accelerator;\n }", "protected String getAcceleratorPreferencesKey() {\r\n return MenuItem.MENU_ACCELERATOR + \"_\" + this.attribute;\r\n }", "public char getFocusAccelerator() {\r\n\t\treturn getJTextField().getFocusAccelerator();\r\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set whether client lifetime is accepted
public void setAcceptClientLifetime(boolean acceptClientLifetime) { this.acceptClientLifetime = acceptClientLifetime; }
[ "public boolean isAcceptClientLifetime() {\n return this.acceptClientLifetime;\n }", "public void setAllowNewClients(boolean value) {\n this.allowNewClients = value;\n }", "public abstract void setAcceptTimeout(int value);", "public boolean isAllowNewClients() {\n return allowNewCli...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
for convert image to string..................................................................
private String imageToString(){ ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); // get image from image view.................................................................. _bitmap = ((BitmapDrawable)imageView.getDrawable()).getBitmap(); _bitmap.compress(Bitma...
[ "java.lang.String getImage();", "String convertImageToBase64String(final BufferedImage img) {\n final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n try {\n ImageIO.write(img, \"png\", byteArrayOutputStream);\n return Base64.getEncoder().encodeToSt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Container's getter for DlvScheduleSpecVO1
public DlvScheduleSpecVOImpl getDlvScheduleSpecVO1() { return (DlvScheduleSpecVOImpl)findViewObject("DlvScheduleSpecVO1"); }
[ "public DlvScheduleVOImpl getDlvScheduleVO1() {\n return (DlvScheduleVOImpl)findViewObject(\"DlvScheduleVO1\");\n }", "java.lang.String getSchedule();", "public ScheduleType getScheduleType();", "public Schedule getSchedule(){\r\n\t\treturn this.schedule;\r\n\t}", "public Schedule getScheduleFromF...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use DoForward.newBuilder() to construct.
private DoForward(Builder builder) { super(builder); }
[ "private DoForward(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "private Forward(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "io.cloudstate.protocol.EntityProto.Forward getForward();", "public void onFastForward(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use Employee.newBuilder() to construct.
private Employee(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
[ "private Employee(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public static com.fretron.Model.Employee.Builder newBuilder() {\n return new com.fretron.Model.Employee.Builder();\n }", "public static com.fretron.Model.Employee.Builder newBuilder(com.fretron.Mo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Shortcut method The method uses a TypeKey and null injection message to obtain an instance.
default <T> T instance(Class<T> type) throws UnsatisfiedInjectionException { return instance(new TypeKey<>(type), null); }
[ "public IParameter getInstance(String type){\n if(!initialized)\n throw new IllegalStateException(\"constructor never finished\");\n Class klass=(Class)paramList.get(type);\n if(klass==null)\n return null;\n else\n return getInstance(klass,false);\n }", "<T> Provider<T> provider(Key<T>...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a VBox with HBox for filter, and TabPane
public VBox createLeftSidePane(TabPane sideTabPane) { VBox vbox = new VBox(); // Create HBox with textfield and button VBox verBox = createHorBoxFilterClubs(sideTabPane); vbox.getChildren().add(verBox); // Create TabPane sideTabPane.setTa...
[ "public VBox createHorBoxFilterGames(TabPane centerTabPane) {\n /** Creates a VBox with textfield and button for filtering tabpanes\n * \n */\n VBox vbox = new VBox();\n String seizoensstring = pref.get(\"Seizoen\", Integer.toString(LocalDate.now().getYear()));\n Label ga...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
signout is handled in UserInterceptor, this method never actually reached, mapping needed to be declared though
@RequestMapping(value="/signout", method= RequestMethod.GET) public void signout() { }
[ "public void userLoggedOut() {\n\t\t}", "public void signOut() {\r\n FacesContext.getCurrentInstance().getExternalContext().getSessionMap().remove(LOGIN);\r\n }", "@Override\n\tpublic void userLogout() {\n\t\tclient.userLogout();\n\t}", "boolean userLogout(UserDTO user) throws UserException, SQLException,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Forward Authorization Roles Forward KeyCloak roles to the Authorization policy. In your Authorization policy you should specify your required role(s).
@JsonProperty("forwardRoles") public void setForwardRoles(ForwardRoles forwardRoles) { this.forwardRoles = forwardRoles; }
[ "public void issueRoles() {}", "public void setAuthorizationHandler(AuthorizationHandler handler)\n {\n }", "private Collection<? extends GrantedAuthority> mapRolesToAuthorities(Collection<Role> roles) {\n// Put roles into stream then map the role, we put role to the security provide class\n// ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Makes task completed. Removes from current tasks and adds into completed tasks.
void setCompleted(Task task) { currentTasks.remove(task); completedTasks.add(task); }
[ "public void taskCompleted() {\n\t\tactiveTaskCount--;\n\t}", "public void completeNext()\n {\n\tTask t = toDo.get(0);\n\tt.complete();\n\ttoDo.remove(0);\n\tcompleted.add(t);\n }", "public void completeTask() {\n completed = true;\n }", "public void completeTask() {\n isCompleted = tru...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Count how many human proteins are in the Panther pathway files.
public void countHumanProteins() throws Exception { // Get the human proteins accession numbers in UniProts UniProtAnalyzer uniAnalyzer = new UniProtAnalyzer(); Map<String, String> uniAccIDsMap = uniAnalyzer.loadUniProtIDsMap(); // TREMBL //fileName = DATASET_DIR + "UniProt" + F...
[ "int getPathsCount();", "int getProcessorpathCount();", "long getNumberOfPeptides(String experimentAccession);", "int getProofsCount();", "int getSourcepathCount();", "int getHerwinCount();", "@Override\n\tpublic int getPianosCount() {\n\t\treturn pianoPersistence.countAll();\n\t}", "public int getPep...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a Beta distribution
public static RuntimeValue beta(RuntimeValue a, RuntimeValue b) throws RuntimeException { if (isDiscreteFloatSample(a) && hasSingleValue(a.getDiscreteFloatSample()) && isDiscreteFloatSample(b) && hasSingleValue(b.getDiscreteFloatSample())) { return new RuntimeValue( ...
[ "public CauchyDistribution (double alpha, double beta) {\n setParams (alpha, beta);\n }", "public BernoulliBayesianEstimator()\n {\n // This is the uniform distribution.\n this( new BetaDistribution.PDF( 1.0, 1.0 ) );\n }", "public void setBeta(double value) {\r\n this.beta = v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getSubjectLocator gets the value of subjectLocator
public String getSubjectLocator() { return subjectLocator; }
[ "public void setSubjectLocator(String subjectLocator) {\n\t\tthis.subjectLocator = subjectLocator;\n\t}", "Collection<LocatorIF> getSubjectIdentifiers();", "public ITopic bySubjectLocator(final ILocator l) {\r\n\t\treturn byIdentity(subjectLocators, l);\r\n\t}", "public SubjectInfo getSubject() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Start a new game and tell all observers to draw an new game with the string message startNewGame()
public void startNewGame() { initializeBoard(); // The state of this model just changed so tell any observer to update themselves setChanged(); notifyObservers("startNewGame()"); }
[ "private void startNewGame() {\n // TODO - handle starting a new game by shuffling the tiles and showing a start message,\n // and updating the game state\n }", "private void startNewGame() {\n\t\ttry {\n\t\t\tthis.map.reload();\n\t\t\tthis.playerWon = false;\n\t\t\tactivePlayer = this.players.ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'field479' field. doc for field479
public java.lang.CharSequence getField479() { return field479; }
[ "public java.lang.CharSequence getField479() {\n return field479;\n }", "public java.lang.CharSequence getField483() {\n return field483;\n }", "public java.lang.CharSequence getField483() {\n return field483;\n }", "java.lang.String getField1164();", "public java.lang.CharSequence getFi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Format a property collection (apply the escaping)
private static String formatProperties(Set<Property> objectProperties) { if (objectProperties != null && !objectProperties.isEmpty()) { StringBuilder sb = new StringBuilder(); for (Property property : objectProperties) { sb.append(':').append(escape(property.getName(), "=;:")).append("=").append(escape(...
[ "void addFormatter(String property, Formatter formatter);", "private String dumpProperties(ArrayList<Property> properties){\n String result = \"\";\n for (Property prop: properties)\n result +=dumpProperty(prop) + \"\\n\";\n return result;\n }", "private String serialiseProper...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the title, publisher, developer, director, producer and composer of the game
@Override public String toString() { return "Title of Game: " + super.getTitleOfGame() + "\nPublisher: " + super.getPublisher() + "\nDeveloper: " + super.getDeveloper() + "\nDirector: " + super.getDirector() + "\nProducer: " + super.getProducer() + "\nComposer: " + super.getComposer(); }
[ "public String getGameDescription(){\n return this.gameDescription;\n }", "GameInformation getGameInformation();", "public String playerInfo() {\n return \"Name: \" + playerName + \", Score: \" + score;\n }", "public static String getGame() {\r\n\t\treturn gameName;\r\n\t}", "public Stri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/Se prueba que el valor arrojado por el metodo de la clase employee cuando el tipo de empleado sea Worker, sea el correcto
@Test public void CalculateYearBonusWorkerTest() { Employee employeetest=new Employee((float) 100.0, "", (float) 10.0, EmployeeType.Worker); assertEquals((float) 386.0, employeetest.CalculateYearBonus()); }
[ "public void addEmployee(Worker aWorker, Director theDirector) {\r\n\t\t\r\n\t\t// en chef och hans arbetare till listan\r\n\t\t\r\n\t\ttheCompanyList.add(aWorker);\r\n\t\r\n\t\t// kopllar ihop worker och chef\r\n\t\t// skickar in wotker till metoden\r\n\t\t// lägger in i theDirector lista, alla hans/hennes workers...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is the setter method. this will set the seList The service engines associated with the dnsvs. Field introduced in 17.1.1. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as nu...
public void setSeList(List<String> seList) { this.seList = seList; }
[ "public void setServiceList(java.lang.String[] serviceList) {\r\n this.serviceList = serviceList;\r\n }", "public Builder setServiceList(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList value) {\n if (serviceListBuilder_ == null) {\n if (value == null) {\n throw new NullPo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Provides the standard interface for calling the classifier Mfunction with 1 input argument. Input arguments may be passed as subclasses of com.mathworks.toolbox.javabuilder.MWArray, or as arrays of any supported Java type. Arguments passed as Java types are converted to MATLAB arrays according to default conversion rul...
public Object[] classifier(int nargout, Object... rhs) throws MWException { Object[] lhs = new Object[nargout]; fMCR.invoke(Arrays.asList(lhs), MWMCR.getRhsCompat(rhs, sClassifierSignature), sClassifierSignature); return lhs; }
[ "protected abstract void postMatLab(Object[] mlResults);", "public interface IClassification {\n /**\n * Interface source code revision.\n */\n String MARF_INTERFACE_CODE_REVISION = \"$Revision: 1.4 $\";\n\n\t/* Classification API */\n\n /**\n * Generic classification routine.\n *\n *...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new MultiColumnRestriction.IN instance for the specified clustering column.
@SafeVarargs private static Restriction newMultiIN(CFMetaData cfMetaData, int firstIndex, List<ByteBuffer>... values) { List<ColumnDefinition> columnDefinitions = new ArrayList<>(); List<Term> terms = new ArrayList<>(); for (int i = 0; i < values.length; i++) { column...
[ "private static Restriction newSingleIN(CFMetaData cfMetaData, int index, ByteBuffer... values)\n {\n ColumnDefinition columnDef = getClusteringColumnDefinition(cfMetaData, index);\n return new SingleColumnRestriction.InWithValues(columnDef, toTerms(values));\n }", "PivotInClause createPivotIn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a new AddressIndexKeyIterator. Memory addresses encoded as Absolute are not included.
public AddressIndexKeyIterator(Table table, int indexCol, AddressMap addrMap, boolean atStart) throws IOException { this(table, indexCol, addrMap, false, (AddressSetView) null, atStart); }
[ "public AddressIndexKeyIterator(Table table, int indexCol, AddressMap addrMap, Address minAddr,\n\t\t\tAddress maxAddr, boolean atStart) throws IOException {\n\t\tthis(table, indexCol, addrMap, false, new AddressSet(minAddr, maxAddr), atStart);\n\t}", "AddressIndexKeyIterator(Table table, int indexCol, AddressMap...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
represents a tagged value
public interface UMLTaggedValue { /** * the tag's name, key, id or tag */ String getName(); /** * the tag's value */ String getValue(); /** * Modify a taggedValue's value. * * @param value the value to change to. */ void setValue(String value); }
[ "UMLTaggedValue getTaggedValue(String name);", "UMLTaggedValue addTaggedValue(String name, String value);", "public String getTaggedValue(String name);", "public TaggedValue getTaggedValue(int index);", "public String getTagVal() {\n return tagVal;\n }", "public ValueTaglet() {\n name = \"va...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
remember recent file currently, automatically going to form doesn't work
@Override public void run() { recent = bluetoothDir + '/' + fileName; //TODO : check is valid tag file //goToForm(recent); }
[ "protected void restoreLastState() {\n\t\tInteger ii = Accessors.INT_ACCESSOR.get(\"numberOfFiles\");\n\t\tif(ii == null)\n\t\t\tii = 0;\n\t\tint jj = 0;\n\t\t\n\t\tFile file;\n\t\twhile(jj < ii) {\n\t\t\tfile = new File(Preference.PREFERENCES_NODE.get(\"editSession\" + ++jj, \"\"));\n\t\t\topen(file);\n\t\t}\n\t}"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the CommandWord associated with a word.
public CommandWord getCommandWord(String commandWord){ CommandWord aDevolver = CommandWord.UNKNOWN; if (validCommands.keySet().contains(commandWord)){ aDevolver = validCommands.get(commandWord); } return aDevolver; }
[ "public CommandWord getCommandWord(String commandWord)\n {\n CommandWord command = validCommands.get(commandWord);\n if(command != null) {\n return command;\n }\n else {\n return CommandWord.UNKNOWN;\n }\n }", "public Command get(String word)\n {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method navigates the Display to the createAccount screen by hiding the current panels in the WindowFrame and calling display.createAccountScreen().
private void goToCreateAccount() { display.resetView(); display.createAccountScreen(); }
[ "public void switchToCreateAccount() {\r\n\t\tlayout.show(this, \"createPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "public static void createAccount(){\n\t\t\n JLabel titleText = layout.getTitleText();\n JLabel subTitleText = layout.getSubTitleText();\n JPanel menuBu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loops through all integers between 1 and the max int value, checks to see if each number is a multiple of all the integers between 3 and 20.
public void smallestMultiple(){ outerLoop: for( int i = 2; i < Integer.MAX_VALUE; i++ ){ for( int j = 3; j <= 20; j++ ) if( i % j != 0 ) continue outerLoop; System.out.println( i ); break; } }
[ "public boolean isMultiple20(double n)\n {\n while ( n > 0 ) {\n n = n - 20;\n if (n == 0) {\n return true;\n }\n }\n return false;\n }", "public boolean more20(int n) {\r\n if(n % 20 <= 2 && n % 20 > 0 )\r\n return true;\r\n else...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Returns all workouts
@PreAuthorize("hasRole('USER') or hasRole('CONTRIBUTOR') or hasRole('ADMIN')") @GetMapping() public ResponseEntity<List<Workout>> getAllWorkouts(){ List<Workout> workouts = workoutRepository.findAll(); HttpStatus status = HttpStatus.OK; return new ResponseEntity<>(workouts, status); ...
[ "public List<Workout> getAllWorkoutsList() {\n Cursor workoutCursor = getWorkoutTable();\n List<Workout> workouts = new ArrayList<>();\n\n // Go through each of the workoutId\n while (workoutCursor.moveToNext()) {\n long workoutId = workoutCursor.getLong(workoutCursor.getColum...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a new HelloSign Landing page.
public LandingPage() { super(true); }
[ "Page createPage();", "private void createFirstPage() {\n BooleanSupplier showWelcomePage = () -> !FirstRunStatus.shouldSkipWelcomePage();\n mPages.add(new FirstRunPage<>(SigninFirstRunFragment.class, showWelcomePage));\n mFreProgressStates.add(MobileFreProgress.WELCOME_SHOWN);\n mPage...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the properties associated with content. This effectively removes all of the current content properties and adds a new set of properties. Some properties, such as system properties provided by the underlying storage system, cannot be updated or removed. Some of the values which cannot be updated or removed: content...
public void setContentProperties(String spaceId, String contentId, Map<String, String> contentProperties) throws ContentStoreException;
[ "private void writeProperties() {\n propsMutex.writeAccess(new Runnable() {\n public void run() {\n OutputStream out = null;\n FileLock lock = null;\n try {\n FileObject pFile = file.getPrimaryFile();\n FileObject m...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
List device commands that match the given criteria.
ISearchResults<? extends IDeviceCommand> listDeviceCommands(IDeviceCommandSearchCriteria criteria) throws SiteWhereException;
[ "public List<Command> getCommands();", "public static void listAllCommands(){\n printLine();\n System.out.println(\" Hello there! Here are all the available commands and their respective formats:\");\n System.out.println(\" To add a deadline: \\\"deadline {Name of task} /by {date} \\\"\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns previous node, or throws NullPointerException if null. Use when predecessor cannot be null. The null check could be elided, but is present to help the VM.
final Node predecessor() throws NullPointerException { Node p = prev; if (p == null) { throw new NullPointerException(); } else { return p; } }
[ "final ThreadTest.Node predecessor() throws NullPointerException {\n ThreadTest.Node p = prev;\n if (p == null)\n throw new NullPointerException();\n else\n return p;\n }", "public DNode getPrev() {\n\t\t\tif (!hasPrev())\n\t\t\t\treturn null;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a label for each row in the file, mapping the data against the columns headers
protected List<PrintRequest.Label> createLabels(Scanner fileData) { String columnHeadingLine = fileData.nextLine(); String[] columnHeadings = columnHeadingLine.split("\\||,"); List<String> columns = new ArrayList<>(); for (String ch : columnHeadings) { ch = ch.trim().toLower...
[ "private void setRowLabels(){\r\n StringBuilder rowLabels = new StringBuilder(\"Filenames\\n\\n\");\r\n int count = 0;\r\n boolean complete =false;\r\n if(displaySettings[0] == true){\r\n rowLabels.append(\"Characters\\n\\n\");\r\n count++;\r\n }\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }