query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Get the regions property: List of all regions associated with the managed hsm pool. | public List<MhsmGeoReplicatedRegionInner> regions() {
return this.regions;
} | [
"public List<String> regions() {\n return this.regions;\n }",
"public List<Region> getAllRegions() {\n\t\treturn regionDao.findWithNamedQuery(Region.QUERY_FIND_ALL, null);\n\t}",
"public List<PDGRegion> getPDGRegions();",
"public Regions getRegions () {\n return this.regions;\n }",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the value associated with the column: crv_comitted_amount | public java.math.BigDecimal getCrvComittedAmount () {
return crvComittedAmount;
} | [
"public BigDecimal getCV_AMOUNT() {\r\n return CV_AMOUNT;\r\n }",
"public java.math.BigDecimal getCrAmount () {\n\t\treturn crAmount;\n\t}",
"java.math.BigDecimal getCreditAmount();",
"public BigDecimal getAMOUNT_CONTRACTOR()\r\n {\r\n\treturn AMOUNT_CONTRACTOR;\r\n }",
"public gw.api.financ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deletes the relations to a given resource. | public void deleteRelationsFromResource(String resourceName, CmsRelationFilter filter) throws CmsException {
CmsResource resource = readResource(resourceName, CmsResourceFilter.ALL);
m_securityManager.deleteRelationsForResource(m_context, resource, filter);
} | [
"public void delRelations();",
"public void delIncomingRelations();",
"void deleteResource(final String resourceId);",
"public void deleteByRelation(int id) throws DAOException;",
"@Override\r\n\tpublic int deleteAuthorityResource(AuthorityresourcesDo ar) {\n\t\tint ret = authorityResourcesDao.deleteRelatio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new Deleted record preparer callable which is used for multithreading. | public DeletedRecordPreparerCallable(List<BibliographicEntity> bibliographicEntities, DeletedJsonFormatterService deletedJsonFormatterService) {
this.bibliographicEntities = bibliographicEntities;
this.deletedJsonFormatterService = deletedJsonFormatterService;
} | [
"public DeleteRecord_Params() \n\t{\n\t\tbatch = null;\n\t}",
"public DeleteRecord() {\r\n }",
"public MarcRecordPreparerCallable(List<BibliographicEntity> bibliographicEntities, MarcXmlFormatterService marcXmlFormatterService) {\n this.bibliographicEntities = bibliographicEntities;\n this.marc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Shows a notification box with the supplied success or error message, in the position passed in the parameter. | public static void showMessageUI(boolean success, String msg, String position) {
//Calls the showNotification javascript function supplying suitable params, note that after new UI design was
//introduced, position is ignored...
showMessageUI(success ? NOTIFICATION_TYPE_INFO : NOTIFICATION_TYPE_E... | [
"void showSuccess(String message);",
"public static void showMessageUI(boolean success, String msg) {\n showMessageUI(success, msg, \"middle_center\");\n }",
"void displayToastMessage(String message);",
"void showSuccess();",
"void warningBox(String title, String message);",
"MessageAlert getSuc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Constructor that uses an unseeded instance of the random number generator. Calls initBoard. | public TrollGame () {
rand = new Random();
initBoard(ROWS, COLS, rand);
} | [
"public PersonalBoard(){\n this(0);\n }",
"public GameBoard(){\n gameBoard = new Board(8,8);\n }",
"public Board()\r\n {\r\n // create the board array of numbertiles of the maximum size \r\n board = new NumberTile[MAX_BOARD];\r\n \r\n // add the first tile on ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .angel.serving.SessionRunLog session_run_log = 5; | com.tencent.angel.serving.apis.prediction.PredictionLogProtos.SessionRunLog getSessionRunLog(); | [
"com.tencent.angel.serving.apis.prediction.PredictionLogProtos.SessionRunLogOrBuilder getSessionRunLogOrBuilder();",
"public com.tencent.angel.serving.apis.prediction.PredictionLogProtos.SessionRunLogOrBuilder getSessionRunLogOrBuilder() {\n if (logTypeCase_ == 5) {\n return (com.tencent.angel.servin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is the constructor for a high area. It constructs from the superclass (Area). | public HighArea(double basicEnergyCost, double elevation, double radiation) {
super(basicEnergyCost, elevation, radiation);
} | [
"public abstract Area newArea();",
"public AreaFunction() {\n super(NAME);\n }",
"public Area() {\n this.x1 = 0;\n this.y1 = 0;\n this.x2 = 0;\n this.y2 = 0;\n this.angle = 0;\n }",
"public CldAreaEgg() {\n\t\t\t\tareaid = 0;\n\t\t\t\ttype = 0;\n\t\t\t\tstarttim... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Plays an audible alert currently the program uses the default notification sound on the device | public void alert() {
try {
Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
Ringtone r = RingtoneManager.getRingtone(getApplicationContext(), notification);
r.play();
} catch (Exception e) {
e.printStackTrace();
... | [
"void playAlertAudio();",
"public static void playSound()\n {\n // A sequence of frequencies and durations (eg 1400hz for 15ms, 1350hz for 15ms, etc)\n short[] fire = {1400, 15, 1350, 15, 1320, 20, 1300, 20, 1250, 25, 1200, 35};\n\n try {\n Alert.startAudio(fire, 50);\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
test vcards from BEGIN:VCARD VERSION:3.0 N:Doe;John;;; FN:John Doe ORG:Example.com Inc.; TITLE:Imaginary test person | @Test
public void testJohnDoe() throws Exception {
CarddavSystem cs = new CarddavSystem();
cs.connect();
String jdvcf = "https://www.w3.org/2002/12/cal/vcard-examples/john-doe.vcf";
VCardNode jdNode = (VCardNode) cs.moveTo(jdvcf);
assertNotNull(jdNode);
if (debug)
cs.forAll(SimpleNode.pr... | [
"void beginVCard();",
"public static vCard parseVcard(BMsgReader reader, int envLevel) {\n String formattedName = null;\n String name = null;\n ArrayList<String> phoneNumbers = null;\n ArrayList<String> emailAddresses = null;\n String[] parts;\n St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column section.purchasemode | public void setPurchasemode(String purchasemode) {
this.purchasemode = purchasemode == null ? null : purchasemode.trim();
} | [
"public String getPurchasemode() {\n return purchasemode;\n }",
"public void setBillingMode(Long BillingMode) {\n this.BillingMode = BillingMode;\n }",
"public void setPurchase(Integer purchase) {\r\n this.purchase = purchase;\r\n }",
"public void setPayMode(String PayMode) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method determines whether the chosen dir is writeable or not. | public boolean isWriteable() {
File existParent = IoHelper.existingParent(new File(pathSelectionPanel
.getPath()));
if (existParent == null)
return false;
// On windows we cannot use canWrite because
// it looks to the dos flags which are not valid
// on NT or 2k XP or ...
if (OsVersion.IS_WI... | [
"@Override\n // A directory can always be written (add files and sub-dirs)\n public boolean canWrite()\n {\n return (isDirectory() ? isReadable() : isModifiable());\n }",
"@Override\n\tpublic boolean isWritable() {\n\t\treturn (Files.isWritable(this.path) && !Files.isDirectory(this.path));\n\t}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
BroadcastAgent will actively process its message queue. This means that while running, this thread will poll the queue and perform stores on the local memory cache. | @Override
public void run()
{
while(true)
{
Message<String, Object> message = commandQueue.poll();
if(message != null)
{
switch (message.opcode)
{
case loadRequestBA:
loadExecute(messa... | [
"public void run()\n\t{\n\t\t// The instance of the received broadcast request. 11/29/2014, Bing Li\n\t\tSearchKeywordBroadcastRequest request;\n\t\t// The thread always runs until it is shutdown by the BoundNotificationDispatcher. 11/29/2014, Bing Li\n\t\twhile (!this.isShutdown())\n\t\t{\n\t\t\t// Check whether t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the dependentFormat value for this GetMsgFormatResponse. | public com.miitas.ws.postalsoft.www.DataServices.ServerX_xsd.GetMsgFormatResponseDependentFormat[] getDependentFormat() {
return dependentFormat;
} | [
"public void setDependentFormat(com.miitas.ws.postalsoft.www.DataServices.ServerX_xsd.GetMsgFormatResponseDependentFormat[] dependentFormat) {\r\n this.dependentFormat = dependentFormat;\r\n }",
"Format getFormat();",
"public Format getFormat();",
"public String getMessageFormat() {\n\t\treturn this... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tell all the ABA interested LPs about the new community memberships, using the local cache of ABA translations. | public void invokeABAChangeLPs(Set communities) {
synchronized (cache) {
for (Iterator i = cache.values().iterator(); i.hasNext(); ) {
ABATranslationImpl at = (ABATranslationImpl) i.next();
at.setOldTranslation(at.getCurrentTranslation());
at.setCurrentTranslation(null); // Filled in w... | [
"private void getAndSendCommunityInfo(Iterable<LouvainMessage> messages) {\n\t\tLouvainNodeState state = this.getValue();\n\t\t// set new community information.\n\t\tif (getSuperstep() > 0) {\n\t\t\tIterator<LouvainMessage> it = messages.iterator();\n\t\t\tif (!it.hasNext()) {\n\t\t\t\tthrow new IllegalStateExcepti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method removes expired records from the list of records returned from the database and also removes the expired records from the database. | private static List<CorrelatedIdentifiers> removeExpiredCorrelations(List<CorrelatedIdentifiers> result) {
List<CorrelatedIdentifiers> modifiedResult = new ArrayList<CorrelatedIdentifiers>();
Date now = new Date();
if (result != null) {
// loop through list and remove the expired co... | [
"public static void purgeExpired()\n {\n Date now = new Date();\n List<DealWatchRecord> allRecords = getAllRecords(null);\n for (int i = 0; i < allRecords.size(); i++)\n {\n DealWatchRecord record = allRecords.get(i);\n if (record != null && record.expiration != ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the value of the letter on the tile. | public int value() {
if (!hasLetterTile) {
return 0;
}
if (hasLetterMult) {
return letterTile.getScore() * multLetter.getMultiplier();
}
return letterTile.getScore();
} | [
"public String getTile(int row, int column)\n {\n return tiles.get(row).get(column).getLetter(); \n }",
"public char getLetter()\n {\n \treturn letter;\n }",
"public char getChar()\n {\n return this.letter;\n }",
"private static String getVal(String let... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GuavaCacheManager cacheManager = new GuavaCacheManager(); cacheManager.setCacheBuilder(CacheBuilder.newBuilder().expireAfterAccess(60, TimeUnit.MINUTES)); | @Bean
public CacheManager cacheManager() {
CaffeineCacheManager cacheManager = new CaffeineCacheManager();
cacheManager.setCacheSpecification("maximumSize=500,expireAfterWrite=60m");
return cacheManager;
} | [
"@Bean\n public CacheManager cacheManager() {\n\n SimpleCacheManager simpleCacheManager = new SimpleCacheManager();\n GuavaCache addressesCache = new GuavaCache(\"addresses\", \n \t\tCacheBuilder\n \t\t.newBuilder()\n \t\t.build());\n GuavaCache customersCache = new Guav... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method takes an resultset and returns it as a tableModel. | private TableModel getResultSetAsDefaultTableModel(ResultSet rs) {
try {
String[] columnHeadings = new String[0];
String[][] dataArray = new String[0][0];
ResultSetMetaData md = rs.getMetaData();
int columnCount = md.getColumnCount();
for... | [
"public TableModel getTableModel();",
"private <T> T resultSetToModel(ResultSet resultSet) throws IllegalAccessException, InstantiationException\n {\n Modelable<T> model = resolveModelableInstance();\n\n ColumnsCollection columnsCollection = new ColumnsCollection();\n\n try\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create security settings in the specified location. | public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings createSecuritySettings(com.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateSecuritySettingsMethod(), getCallOptions(), request);
} | [
"public LocationSettings createLocationSettings() {\n // Using an anonymous subclass as the constructor is protected.\n // This is done to deter instantiation of LocationSettings elsewhere without using the\n // getInstance() helper method.\n return new LocationSettings(this){};\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method to set the location of pirate ships | public void setLocation (int x, int y) {
i=x/50;j=y/50;
OceanMap.myGrid[i][j]= true;
pship =new Point(x,y);
} | [
"public void setShipLocation(Point ship) {\r\n\t\tshipLocation = ship;\r\n\t}",
"private void setShips() {\n //This clears the board. To \"Invalidate\"\n for (int x = 0; x < maxN; x++) {\n for (int y = 0; y < maxN; y++) {\n ivCell[x][y].setBackgroundResource(gridID);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
String sql = "SELECT `nb_users_max` FROM `licences` WHERE `licence` = ?"; | @Override
public int getNbMaxUsers(String licence) throws DAOException {
try {
PreparedStatement statement = connection.prepareStatement(QUERY_NB_MAX_USERS);
statement.setString(1, licence);
ResultSet rs = statement.executeQuery();
int nbUsersMax = 0;
if(rs.first()) {
nbUsersMax = rs.getInt("nb_us... | [
"public String retrieveMaxCusId() throws SQLException{\r\n String preSql = \"select MAX(cusId) from customer\";\r\n preStmt = con.prepareStatement(preSql);\r\n \r\n ResultSet rs = preStmt.executeQuery();\r\n String cusId=\"\";\r\n \r\n while(rs.next()){\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Expert: increments the refCount of this TaxonomyReader instance only if it has not been closed yet. Returns true on success. | public final boolean tryIncRef() {
int count;
while ((count = refCount.get()) > 0) {
if (refCount.compareAndSet(count, count + 1)) {
return true;
}
}
return false;
} | [
"public final void incRef() {\n ensureOpen();\n refCount.incrementAndGet();\n }",
"public void incrRefCounter() {\n\t\tthis.refCounter++;\n\t}",
"public void incrementRef() {\n\t\t\t++refCount;\n\t\t}",
"public void incrementRef() {\r\n nReferences++;\r\n }",
"public final void addRef() { r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) | @javax.annotation.Nullable
@ApiModelProperty(value = "The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)")
public String getKey() {
return key;
} | [
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)\")\n\n public String getProtectionKeyName() {\n return protectionKeyName;\n }",
"String getSecretByKey(String key);",
"private St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a copy of a provided FormResource, ignoring the uuid and id of the original | public FormResource(FormResource old) {
this.form = old.getForm();
this.name = old.getName();
this.valueReference = old.getValueReference();
this.datatypeClassname = old.getDatatypeClassname();
this.datatypeConfig = old.getDatatypeConfig();
this.preferredHandlerClassname = old.getPreferredHandlerClassname()... | [
"@Test\n public void testCopyAndSetMetaId() {\n Patient patient = Patient.builder()\n .id(\"orig\")\n .name(HumanName.builder()\n .given(string(\"John\"))\n .family(string(\"Doe\"))\n .build())\n .build()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sets the output port of chat1 to Queue and input port of chat2 and chat3 to topic and tests the change | public void testChange2() {
try {
DRTTestLogger.logMethodOrder(DRTTestConstants.getOrderMessage("testChange2", "PortDestinationTest"));
System.out.println("Started the Execution of the TestCase::" + getName());
stopApplication(m_appGUID);
Application application =... | [
"public void testChange3() {\n try {\n DRTTestLogger.logMethodOrder(DRTTestConstants.getOrderMessage(\"testChange3\", \"PortDestinationTest\"));\n System.out.println(\"Started the Execution of the TestCase::\" + getName());\n Application application = ApplicationParser.readAp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests that a sample cannot be created without specifying observations. | @Test(expected = NullPointerException.class)
public void testConstructWithoutObservations()
{
new Sample(null);
} | [
"@Test(expected = IllegalArgumentException.class)\n public void testConstructWithNoObservations()\n {\n new Sample(new double[0]);\n }",
"@Test\n\tpublic void invalidIdPersonTest(){\n\t\tobservations.add(new ObservationObject(PERSON, PERSON_ID_INVALID, CAM_NAME_EXISTENT));\n\n\t\t// Should throw exception\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the HowlOuputJobInfo object by reading the Configuration and deserializing the string. If JobInfo is not present in the configuration, throws an exception since that means HowlOutputFormat.setOutput has not been called. | static OutputJobInfo getJobInfo(JobContext jobContext) throws IOException {
String jobString = jobContext.getConfiguration().get(HOWL_KEY_OUTPUT_INFO);
if( jobString == null ) {
throw new IOException("HowlOutputFormat not initialized, setOutput has to be called");
}
re... | [
"com.google.protobuf.ByteString getJobConfig();",
"public String getJobInfo() {\n return jobInfo;\n }",
"public JobConfig getJobConfig() {\n return _jobConfig;\n }",
"JobflowInfo getInfo();",
"public void setJobInfo(String jobInfo) {\n this.jobInfo = jobInfo;\n }",
"public JobConfi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the translatable item material name | public static String getTranslatableMaterialName (ItemStack item) {
return ChatItems.getLocaleManager().queryMaterial(item.getType());
} | [
"static String getTranslatableMaterialName (ItemStack item) { return null; }",
"public String getMaterialName() {\n\t\treturn this.theToolMaterial.toString();\n\t}",
"public String getToolMaterialName()\n {\n return this.toolMaterial.toString();\n }",
"public static String getMaterialName(final M... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generate DeregisterTaskFromMaintenanceWindowRequest from the DeleteResource request. | public DeregisterTaskFromMaintenanceWindowRequest resourceModelToRequest(final ResourceModel model) {
final DeregisterTaskFromMaintenanceWindowRequest deregisterTaskFromMaintenanceWindowRequestRequest =
DeregisterTaskFromMaintenanceWindowRequest.builder()
.windowId(model.... | [
"protected Request createDeleteFromDiagramRequest() {\n\t\tGroupRequest deleteReq = new GroupRequest(RequestConstants.REQ_DELETE);\n\t\tMap<String, String> extendedData = new HashMap<String, String>();\n\t\textendedData.put(\"Delete\", \"Delete from diagram\");\n\t\tdeleteReq.setExtendedData(extendedData);\n\t\tret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determine if there is nonwhitespace content in the "user" field, and if to to decide if it's a flickr userid (not so likely, but more efficient) or a flickr user's email address. If neither, we assume it's a flickr username. Assign the resultant value in the searchParams. | private boolean extractUserSearchString(Flickr flickr, FlickrSearchParameters params)
throws FlickrException {
boolean isEmail = false, isFlickrId = false, isFlickrUsername = false, haveFlickrUserId = false;
String strInput = params.getUserRawText();
if (strInput != null) {
strInput = strInput.... | [
"public User search_userinfo(String user_name);",
"private String handleMemberNameSearch(String query, Map<String, Object> searchFields, String memberText){\n if(memberText.contains(\" \")){\n String firstName;\n String lastName;\n String[] nameArray = memberText.split(\" \");\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the seat extra facility. | private ExtraFacility getSeatExtraFacility(final BasePackage packageModel)
{
ExtraFacility facility = null;
for (final ExtraFacilityCategory cat : packageModel.getExtraFacilityCategories())
{
if (StringUtils.equals(cat.getCode(), ExtraFacilityConstants.SEAT_EXTRAS_CATEGORY_CODE))
... | [
"public Seat getSeat()\r\n\t{\r\n\t\tif( seat != null )\r\n\t\t{\r\n\t\t\treturn seat;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn null;\r\n\r\n\t\t}\r\n\t}",
"public int getSeats ()\r\n\t{\r\n\t\treturn seatNumber;\r\n\t}",
"private int getExtraFacilityQuantity(final ExtraFacility extraFacility)\r\n {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of deleteCarById method, of class CarsRestController. | @Test
public void testDeleteCarById() {
System.out.println("deleteCarById");
int id = 1;
ResponseEntity<String> expResult = new ResponseEntity<String>("OK", HttpStatus.OK);
when(carService.deleteCarById(id)).thenReturn(expResult);
ReflectionTestUtils.setField(carController, "carService", carService);
Res... | [
"@Test\n public void deleteCar() throws Exception {\n Car carOne = getCar();\n carOne.setId(1L);\n\n when(carRepository.findById(carOne.getId())).thenReturn(java.util.Optional.of(carOne));\n doNothing().when(carRepository).delete(carOne);\n\n mvc.perform(\n delet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the query generator for the partner search engine. | protected QueryGeneratorApi getQueryGenerator() {
return queryGenerator;
} | [
"com.vitessedata.llql.llql_proto.LLQLQuery.Generator getGenerator();",
"CampusSearchQuery generateQuery();",
"QueryProvider getProvider();",
"com.vitessedata.llql.llql_proto.LLQLQuery.GeneratorOrBuilder getGeneratorOrBuilder();",
"public interface NativeQueryGenerator extends Serializable {\n\n\t/**\n\t * T... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is a total hack. Set B to a diagonal matrix where each diagonal element is the value of the largest absolute value in B. This will be SPD and hopefully not screw up the search. | private void resetMatrixB() {
// find the magnitude of the largest diagonal element
double maxDiag = 0;
for( int i = 0; i < N; i++ ) {
double d = Math.abs(B.get(i,i));
if( d > maxDiag )
maxDiag = d;
}
B.zero();
for( int i = 0; i < N; i++ ) {
B.set(i,i,maxDiag);
}
} | [
"public Matrix solve(Matrix B) throws SubMatrixOutOfBoundsMatrixException;",
"public static void columnMaxAbs( FMatrixSparseCSC A , float []values ) {\n if( values.length < A.numCols )\n throw new IllegalArgumentException(\"Array is too small. \"+values.length+\" < \"+A.numCols);\n\n for ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes a new instance of the DummyTestResult class | public DummyTestResult(ITestContext testContext) {
this.testContext = testContext;
} | [
"public DummyTestResult() {\n this.testContext = null;\n }",
"public AuxiliarTest()\n {\n }",
"public TestCase()\r\n {\r\n super();\r\n resetIO();\r\n }",
"public TestCase() {\n\t\tthis.title = null;\n\t\tthis.steps = new ArrayList<TestCaseStep>();\n\t\tthis.valid = true;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor that read all binding annotations of the components inside the specified desktop. | public AnnotateDataBinder(Desktop desktop) {
init(desktop, true);
} | [
"public void init(Desktop desktop, boolean defaultConfig) {\n\t\tsetDefaultConfig(defaultConfig);\n\t\tfor (final Iterator\tit = desktop.getComponents().iterator(); it.hasNext(); ) {\n\t\t\tloadAnnotations((Component) it.next());\n\t\t}\t\t\t\n\t}",
"public Component(Desktop desktop) {\r\n this.desktop = d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
resolveSetter: lookup appropriate setter method for a given attribute that is associate with myClass | public SootMethod resolveSetter(String attrName, SootClass myClass) {
for (SetterEntry entry: setterList) {
//attribute name does not match
if (!entry.attr.equals(attrName)) {
continue;
}
SootClass parentClass = Scene.v().getSootClass(entry.className);
// not a subclass
if (!Scene.v().getActive... | [
"public Method getSetter(Method getter);",
"public static Method findSetterFromField(Class<?> objectClass, Field field) \r\n\t\t\tthrows NoSuchMethodException, SecurityException {\r\n\t\tString methodName = \"set\" + StringUtils.capitalize(field.getName());\r\n\t\treturn objectClass.getMethod(methodName, field.ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ CustomColorDockable < CustomColorLayout | public CustomColorDockable layout(CustomColorLayout layout, PlaceholderStrategy placeholders) {
return new CustomColorDockable(layout.getTitle(), layout.getColor());
} | [
"public CustomColorDockable layout(CustomColorLayout layout, Map<Integer, Dockable> children, PlaceholderStrategy placeholders) {\n return layout(layout, placeholders);\n }",
"public void setGeneralContainerBackground(ColorModel color);",
"Component getDockable();",
"public ColorButton(Color color) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .edcdatatypes.EdcPayload.EdcMetric metric = 5000; can be zero, so optional | public com.eurotech.cloud.message.protobuf.EdcPayloadProto.EdcPayload.EdcMetric.Builder addMetricBuilder() {
return getMetricFieldBuilder().addBuilder(
com.eurotech.cloud.message.protobuf.EdcPayloadProto.EdcPayload.EdcMetric.getDefaultInstance());
} | [
"com.eurotech.cloud.message.protobuf.EdcPayloadProto.EdcPayload.EdcMetric getMetric(int index);",
"com.eurotech.cloud.message.protobuf.EdcPayloadProto.EdcPayload.EdcMetric.ValueType getType();",
"public Builder addMetric(com.eurotech.cloud.message.protobuf.EdcPayloadProto.EdcPayload.EdcMetric value) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Scroll animation speed in milliseconds allowing a developer to slow down or accelerate the smooth animation mode. | public int getScrollAnimationSpeed() {
return contentPane.getScrollAnimationSpeed();
} | [
"public void setScrollAnimationSpeed(int animationSpeed) {\n\t\tcontentPane.setScrollAnimationSpeed(animationSpeed);\n\t}",
"public void setAnimationSpeed(int animationSpeed) {\n mAnimationSpeed = animationSpeed;\n }",
"public native static float ctrlAutoScrollSpeed(GameControl oper1);",
"public voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether this Room has a door on the wall in the given Direction. | public boolean hasDoor(Direction direction) {
return this.doors.get(direction);
} | [
"public boolean isDoorway() {\n\t\tif(doorDirection != DoorDirection.NONE) {\t\t\t\t\t\t\t\t// catches if there is a door direction, indicating that the cell is a door\n\t\t\treturn true;\t\t\t\t\t\t\t\t\t\t\t\t\t\t// return true, indicating that the cell is a door\n\t\t}\n\t\telse {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ This tests the setColor() method of the Dog class creates an initialized dog object, and changes the color value expects that changed value is the same as the tested one | @Test
public void dogSetColor() {
Dog dog = new Dog("0000000000000001", "lucky", "altered", "male", "boston terrier", "red and white", "white plains");
dog.setColor("chocolate");
assertEquals("chocolate", dog.getColor());
} | [
"public void changeDogColor(Color dogColor) {\n this.color = dogColor;\n }",
"@Test\n\tpublic void dogGetColor() {\n\t\tDog dog = new Dog(\"0000000000000001\", \"lucky\", \"altered\", \"male\", \"boston terrier\", \"red & white\", \"white plains\");\n\t\tassertEquals(\"red & white\", dog.getColor());\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To c32 web service client exception. | private C32WebServiceClientException toC32WebServiceClientException(
Exception exception) {
logger.error("Error closing C32WebServiceClient port");
logger.error(exception.getMessage(), exception);
return new C32WebServiceClientException(exception);
} | [
"private void handleExceptions(Exception e,String uri) throws ServiceProxyException {\n \n //Step 1: Is error AdfInvocationRuntimeException, AdfInvocationException or AdfException? \n String exceptionPrimaryMessage = e.getLocalizedMessage();\n String exceptionSecondaryMessag... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'var186' field. | public com.dj.model.avro.LargeObjectAvro.Builder clearVar186() {
var186 = null;
fieldSetFlags()[187] = false;
return this;
} | [
"public com.dj.model.avro.LargeObjectAvro.Builder clearVar188() {\n var188 = null;\n fieldSetFlags()[189] = false;\n return this;\n }",
"public com.dj.model.avro.LargeObjectAvro.Builder clearVar184() {\n var184 = null;\n fieldSetFlags()[185] = false;\n return this;\n }",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The total number of tab views. | @javax.annotation.Nullable
@ApiModelProperty(value = "The total number of tab views.")
@JsonProperty(JSON_PROPERTY_TAB_VIEWS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getTabViews() {
return tabViews;
} | [
"public static int getTabViewCount() {\n return tabViews.size();\n }",
"int getTabCount();",
"public int getTabCount() {\n return mTabLayout.getTabCount();\n }",
"public int getTabCount() {\r\n return _TabbedPane_Tabs.getTabCount();\r\n }",
"@Override\n public int getViewsCo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialize statistics text labels | private void initalizeStatisticsTextLabels () {
moveDirection = new JLabel("Move Direction: Player Start"); //Initialize
moveDirection.setBounds(0, gridPieceDimension*numRows, gridPieceDimension*numCols, gridPieceDimension); //Set location
MasterGameProcess.frame().add(moveDirection); //Add to frame
locat... | [
"private void initialiseLabels() {\n conjunctionLabel.setText(null);\n initialiseRequirementIndexLabel();\n initialiseOrLabel();\n }",
"private void initFinalScoreLabel() {\n\t\tfinalScoreLabel = new Label(\"Final Score: \" + ScrambleModel.getCurrentScore().toString());\n\t\tgrid.add(final... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Saves a weather alert summary | void saveAlertSummary(AlertSummary alertSummary); | [
"public void saveWeather(){\n\t\tSystem.out.println(\"Save weather\");\n\t\tint lenght = FM.requestForecast().size();\n\t\n\t\tfor(int i = 0; i < lenght; i++) {\n\t\t\t\n\t\t\tDC.weatherToDB(FM.requestForecast().get(i).getCelsius(), FM.requestForecast().get(i).getDate(), FM.requestForecast().get(i).getDesc());\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Exports the measurements to either sysout or a file using the exporter loaded from conf. | private static void exportMeasurements(Properties props, int opcount, long runtime) throws IOException {
MeasurementsExporter exporter = null;
try {
// if no destination file is provided the results will be written to stdout
OutputStream out;
String exportFile = props.getProperty(EXPORT_FILE_P... | [
"private static void exportMeasurements(Properties props, int opcount, long runtime)\n\t\t\tthrows IOException\n\t{\n\t\tMeasurementsExporter exporter = null;\n\t\ttry\n\t\t{\n\t\t\t// if no destination file is provided the results will be written to stdout\n\t\t\tOutputStream out;\n\t\t\tString exportFile = props.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method output on Screen set of keys | public void outputSetKey() {
int index =0;
System.out.print("Set key : ");
while(key[index]!=null) {
System.out.print(key[index]+" ; ");
index++;
}
System.out.println();
} | [
"private void printKeys()\r\n\t{\r\n\t\tSystem.out.print(\"[\");\r\n \t\tfor (int i = 0; i < this.keyTally; i++)\r\n \t\t{\r\n \t\tSystem.out.print(\" \" + this.keys[i]);\r\n \t\t}\r\n \t\tSystem.out.print(\"]\");\r\n\t}",
"private static void printMenu3() {\n mySB.append(LINE_BREAK);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the isFinished variable to true | public static void setIsFinished() {
isFinished = true;
} | [
"protected void setFinished()\n\t{\n\t\tthis.finished = true;\n\t}",
"public boolean isFinished();",
"public void finish(){\n\t\tnotfinish = false;\n\t}",
"public boolean checkFinished(){\n return isFinished;\n }",
"public void done() {\n isDone = true;\n }",
"public synchronized final... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'field133' field has been set | public boolean hasField133() {
return fieldSetFlags()[133];
} | [
"public boolean hasField131() {\n return fieldSetFlags()[131];\n }",
"public boolean hasField123() {\n return fieldSetFlags()[123];\n }",
"public boolean hasField121() {\n return fieldSetFlags()[121];\n }",
"public boolean hasField132() {\n return fieldSetFlags()[132];\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__ServidorBD__Group_9__2" $ANTLR start "rule__ServidorBD__Group_9__2__Impl" InternalCeffective.g:5451:1: rule__ServidorBD__Group_9__2__Impl : ( ( rule__ServidorBD__RecursosAssignment_9_2 ) ) ; | public final void rule__ServidorBD__Group_9__2__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalCeffective.g:5455:1: ( ( ( rule__ServidorBD__RecursosAssignment_9_2 ) ) )
// InternalCeffective.g:5456:1: ( ( rule__ServidorBD__Recu... | [
"public final void rule__ServidorBD__Group_9_3__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:5562:1: ( ( ( rule__ServidorBD__RecursosAssignment_9_3_1 ) ) )\n // InternalCeffective.g:5563:1: ( ( rule... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return a feature from the supplied list at the given position. | public static <T extends Feature> T getFeatureAt(double position, int buffer, List<? extends T> features) {
int startIdx = 0;
int endIdx = features.size();
while (startIdx != endIdx) {
int idx = (startIdx + endIdx) / 2;
T feature = features.get(idx);
int e... | [
"private static Feature getFeatureAt(double position, List<? extends Feature> features) {\n int strt = (int) position;\n Feature key = new BasicFeature(\"\", strt, strt + 1);\n\n int r = Collections.binarySearch(features, key, FEATURE_START_COMPARATOR);\n\n if (r >= 0) {\n ret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the specified motor(s) to go backward at the specified speed. The abrupt parameter indicates whether any speed change should be abrupt, or should be changed linearly with a smooth trapezoidal ramp. | public void goReverse(int motor, int speed, boolean abrupt) {
move(motor, speed, (byte)DIR_REVERSE, abrupt);
} | [
"public void setBackwardSpeed(){\n\t\tsetForwardSpeed(-DEFAULT_FORWARD_SPEED);\n\t}",
"public void moveBackward(int speed) throws JposException;",
"public void backward( double speed, double numSeconds)\n {\n assert scribblerConnected() : \"Scribbler not connected\";\n assert -1.0 <= speed && ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Spring Data repository for the Placa entity. | @SuppressWarnings("unused")
@Repository
public interface PlacaRepository extends JpaRepository<Placa, Long> {
} | [
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface CertificatOrigineRepository extends JpaRepository<CertificatOrigine, Long> {\n}",
"public interface ParametrizacaoSlaRepository extends JpaRepository<ParametrizacaoSla, Long> {\r\n\r\n\t/**\r\n\t * Obtem a lista de parametrizacao de SLA com base nos fi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method initializes jpOrdiniraneNaocaleDaleko | private OsobineNaocalaPanel getJpOrdiniraneNaocaleDaleko() {
if(jpOrdiniraneNaocaleDaleko == null) {
jpOrdiniraneNaocaleDaleko = new OsobineNaocalaPanel(this.glavni);
jpOrdiniraneNaocaleDaleko.setNaziv("Naočale daleko");
jpOrdiniraneNaocaleDaleko.setPreferredSize(new java.awt.Dimension(690,170));
jpO... | [
"public telaOrdena() {\n initComponents();\n }",
"private javax.swing.JPanel getJpOrdinirano() {\r\n\t\tif(jpOrdinirano == null) {\r\n\t\t\tjpOrdinirano = new javax.swing.JPanel();\r\n\t\t\tjava.awt.GridBagConstraints consGridBagConstraints28 = new java.awt.GridBagConstraints();\r\n\t\t\tjava.awt.GridBa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GENLAST:event_jPasswordField6ActionPerformed changes file password for user by administrator | private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton14ActionPerformed
int msg = JOptionPane.showConfirmDialog(null, "Are you sure you want to change the file password?",
"Confirmation", JOptionPane.YES_NO_OPTION);
if (msg == 0) {
St... | [
"private void passwordJBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_passwordJBActionPerformed\n String newPassword = String.valueOf(passwordJPF.getPassword());\n BD.cambiarPassword(newPassword);\n JOptionPane.showMessageDialog(null, \"La PASSWORD se ha modificado con éxit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Build the perspective. This method first recognizes hardware modules that makes rack(s). Then finds wires. | public PerspectiveComponent build() throws SynthComponentException, ComponentBuildException
{
if (root == null) {
root = new SynthComponent(SynthComponent.TYPE_ROOT, "");
}
PerspectiveComponent perspective = new PerspectiveComponent(perspectiveName);
root.addSubComponen... | [
"@Override\n public SmartHomeAppliance build() {\n\tContainer infraRedControllerContainer = new ElectroMagnetic(\"Internal electrical ElectroMagnetic container\");\n\tTransmitter infraRedToControllerTransmitter = new UniversalTransmitterStrategy(\n\t\t\"InfraRed to controller transmitter\", infraRedControllerCon... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end synpred80_InternalHelloXcore $ANTLR start synpred81_InternalHelloXcore | public final void synpred81_InternalHelloXcore_fragment() throws RecognitionException {
// ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4528:2: ( rule__XRelationalExpression__Alternatives_1 )
// ../org.xtext.example.hello... | [
"public final boolean synpred116_InternalHelloXcore() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred116_InternalHelloXcore_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert just one hex digit Return value is UINT_MAX if the input character is not a hex digit. | public static int hexDigitToDecimal(char in)
{
int out = -1;
if (in >= '0' && in <= '9')
out = in - '0';
else if (in >= 'a' && in <= 'f')
out = 10 + in - 'a';
else if (in >= 'A' && in <= 'F')
out = 10 + in - 'A';
// return value is UINT_MAX if the input is not a hex digit
return out;
} | [
"private static int hex2dec(int hex) {\n if (hex > 0x255 || hex < 0) {\n throw new IllegalArgumentException(\"Value must be between 0 and 0x255 (597)\");\n }\n return (hex / 256) * 100 + ((hex % 256) / 16) * 10 + hex % 256 % 16;\n }",
"private static byte unhex(char[] hex) throws InvalidHexExceptio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests if a project with an inline filter and an implicit filter correctly uses the inline filters. | @Test
public void test_inline_and_implicit_filter_fails() throws Exception {
verify("inline-and-implicit-fails", true);
} | [
"@Test\n public void test_inline_filter() throws Exception {\n verify(\"inline-filter\", false);\n }",
"@Test\n public void test_merge_inline_filter() throws Exception {\n verify(\"merge-inline-filter\", false);\n }",
"@Test\n public void test_merge_inline_filter_with_metainf() thro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Start an individual service. | public void startService(String service, java.util.Map<String, String> __ctx)
throws AlreadyStartedException,
NoSuchServiceException; | [
"public void startService();",
"void startService();",
"public void startService(String service)\r\n throws AlreadyStartedException,\r\n NoSuchServiceException;",
"protected void startService() {\n\t\t//if (!isServiceRunning(Constants.SERVICE_CLASS_NAME))\n\t\tthis.startService(new Intent... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns an array of the quals in this pileup. Note: this call costs O(n) and allocates fresh array each time | public byte[] getBaseQuals() {
return toByteArray(extractIntArray(pe -> pe.getQual()));
} | [
"public double[] getQualityScores() {\n return null;\n }",
"@Override\n public double[] getQualityScores() {\n return mQualityScores;\n }",
"public Individual[] getPopulationArray(){\n return indivs;\n }",
"public int[] getMappingQuals() {\n return extractIntArray(pe ->... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Validates the validateMultipleChoiceQuestionPatternObservationLanguageCode constraint of 'Multiple Choice Question Pattern Observation'. | public boolean validateMultipleChoiceQuestionPatternObservation_validateMultipleChoiceQuestionPatternObservationLanguageCode(
MultipleChoiceQuestionPatternObservation multipleChoiceQuestionPatternObservation,
DiagnosticChain diagnostics, Map<Object, Object> context) {
return multipleChoiceQuestionPatternObserva... | [
"public boolean validateMultipleChoiceQuestionPatternObservation_validateMultipleChoiceQuestionPatternObservationCode(\n\t\t\tMultipleChoiceQuestionPatternObservation multipleChoiceQuestionPatternObservation,\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context) {\n\t\treturn multipleChoiceQuestionPatter... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests both Kruskals and Prims algorithms with every size/ratio variant of connected graphs. | public static void testConnected() {
System.out.println("Results for connected graph: ");
for (int i = 0; i < N.length; i++) {
for (int j = 0; j < e.length; j++) {
Graph graph = new Graph(N[i]);
graph.generateConnectedGraph(e[j]);
long kr = te... | [
"private void testK5() {\n final PGraph bmSubgraph = testSubgraphBuilder(new BoyerMyrvoldPlanarSubgraphBuilder(),\n createK5(), 1);\n // checks if the implementation of BoyerMyrvold approach generates correct planar subgraphs.\n final PGraph lrSubgraph = testSubgraphBuilder(new L... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of heroIsDownLeft method, of class FillBarrel. | @Test
public void testHeroIsDownLeft() {
System.out.println("heroIsDownLeft");
FillBarrel instance = new FillBarrel();
instance.heroIsDownLeft();
// TODO review the generated test code and remove the default call to fail.
} | [
"@Test\n public void testHeroIsUpLeft() {\n System.out.println(\"heroIsUpLeft\");\n FillBarrel instance = new FillBarrel();\n instance.heroIsUpLeft();\n // TODO review the generated test code and remove the default call to fail.\n \n }",
"private boolean leftDownCollision(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleOutArguments" $ANTLR start "ruleOutArguments" ../eu.quanticol.caspa.ui/srcgen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:867:1: ruleOutArguments : ( ruleExpressions ) ; | public final void ruleOutArguments() throws RecognitionException {
HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens("RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS");
int stackSize = keepStackSize();
try {
// ../eu.quanticol.caspa.ui/src-ge... | [
"public final void entryRuleOutArguments() throws RecognitionException {\n\n \tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_ML_COMMENT\", \"RULE_SL_COMMENT\", \"RULE_WS\");\n\n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/an... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test run configurations: Cache mode, atomicity type, is near. | @Parameterized.Parameters
public static Collection<Object[]> runConfig() {
return Arrays.asList(new Object[][] {
{PARTITIONED, ATOMIC, true},
{PARTITIONED, ATOMIC, false},
{PARTITIONED, TRANSACTIONAL, true},
{PARTITIONED, TRANSACTIONAL, false},
{RE... | [
"public abstract void testCacheConfiguration();",
"@Parameterized.Parameters(name = \"nodesCnt={0}, singleNodeTx={1}, backups={2}\")\n public static Collection<Object[]> runConfig() {\n return Arrays.asList(new Object[][] {\n {1, true, 0},\n {1, true, 1},\n {1, false, 0}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a nested property for the item, e.g. "manager.address.street". If any intermediate getters return null values then the property becomes null and readonly. | public boolean addNullableNestedProperty(String propertyPath)
{
return addItemProperty(
propertyPath,
new NullableNestedProperty(getBean(), propertyPath));
} | [
"public void addNestedProperty(String nestedPropertyId) {\n addItemProperty(nestedPropertyId, new EntityProperty<Object>(getEntity(), nestedPropertyId));\n }",
"private void addItemPropertyToField(Client c) {\r\n\r\n\t\t// To prevent a null point exception, the clients address must be set.\r\n\t\t// If ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Given an audio format and the ctor for a class that exports, build the map of export ctors. | private void registerExporter(AudioFormat format, BiFunction<AudioItem, File, BaseMetadataExporter> ctor) {
cmap.put(format.getFileExtension(), ctor);
} | [
"private BaseMetadataExporter getExporter(AudioItem item, File targetFile, AudioFormat targetFormat) {\n BiFunction<AudioItem, File, BaseMetadataExporter> ctor = cmap.get(targetFormat.getFileExtension());\n if (ctor != null) {\n return ctor.apply(item, targetFile);\n }\n retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Methods: Getter method for the COM property "Application" | @DISPID(148)
@PropGet
excel._Application getApplication(); | [
"@VTID(15)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getApplication();",
"@DISPID(1) //= 0x1. The runtime will prefer the VTID if present\n @VTID(8)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getApplication();",
"@DISPID(148)\n @PropGet\n excel._Application getApplica... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the id gerente. | public void setIdGerente(Long idGerente) {
this.idGerente = idGerente;
} | [
"public void setIdEnte(int idEnte) {\n this.id = idEnte;\n }",
"@Override\r\n\tpublic void setId(long id) {\r\n\t\t_tthcBieuMauHoSo.setId(id);\r\n\t}",
"public void setId() {\n this.id = id;\r\n }",
"public void setIdEntidadFederativa(Integer idEntidadFederativa) {\r\n this.idEntidadFeder... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method returns true if this container contains the specified Ball. It will return false otherwise. | public boolean contains(Ball b) {
return this.contents.contains(b);
} | [
"private boolean contains(Ball ball) {\n checkRep();\n boolean contains =\n ball.getPosition().x() > this.boundingBoxPosition.x()\n && ball.getPosition().x() < this.boundingBoxPosition.x() + this.width\n && ball.getPosition().y() > this.boundingBoxPosition.y() \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create Method CheckOut Attendance of a Staff | public void checkOutAttendance(Date d, String staffID) {
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
Date date = Calendar.getInstance().getTime();
Timestamp ts = new Timestamp(date.getTime());
AttendanceRecord ar = new AttendanceRecord();
for(AttendanceRecord a:arDao.fin... | [
"void createAttendance(Attendance attendance);",
"void singIn(Attendance attendance);",
"void deleteAttendance(Attendance attendance);",
"void saveStudentAttendance(Integer laboratoryId, String studentPnc, AttendanceDto attendanceDto)\n throws ServiceEntityAlreadyExistsException;",
"Staff createStaff... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Register the given directory tree and execute the given handler whenever a file/folder has been created, modified or delete. The configurer callback allow you to customize default event kinds, filter specific file types and restrict the watch scope lookup to direct files. | public FileWatcher register(final String property,
final Class<? extends FileEventHandler> handler,
final Consumer<FileEventOptions> configurer) {
return register(c -> Paths.get(c.getString(property)),
path -> new FileEventOptions(path, handler), configurer);
} | [
"public FileWatcher register(final Path path, final Class<? extends FileEventHandler> handler,\n final Consumer<FileEventOptions> configurer) {\n return register(c -> path, p -> new FileEventOptions(p, handler), configurer);\n }",
"@SafeVarargs\r\n @Override\r\n public final void registerLi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the count associated with the specified key, or zero if the key has never been incremented. | public int count( K key ) {
Integer i = map.get( key );
return i == null ? 0 : i;
} | [
"public Integer getCount(T key) {\n\t\tMutInt val = counts.get(key);\n\t\tif (val == null) {return null;}\n\t\treturn val.get();\n\t}",
"public int getCount(final K key) {\n throwIfNullKey(key);\n final Integer count = associationCountMap.get(key);\n if (count == null) {\n return 0... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Applies the coarticulation to the given sign, adding the result (if any) to the given ones. | public void applyCoart(Sign lexSign, Sign coartSign, List<Sign> results) {
Category[] cats = new Category[] { lexSign.getCategory(), coartSign.getCategory() };
try {
List<Category> resultCats = bapp.applyRule(cats);
if (resultCats.isEmpty()) return;
fo... | [
"private static void propagateSignOfRSquare(SNP[] snps) throws Exception {\r\n\t\tboolean propagating = false;\r\n\t\tdouble c_i = 0.5;\r\n\t\t\r\n\t\t//repeatedly propagate\r\n\t\twhile (true) {\r\n\t\t\tfor (int index1 = 0; index1 < snps.length - 1; index1++) {\r\n\t\t\t\tfor (int index2 = index1 + 1; index2 < sn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns family of the CPU. | public int getFamily() {
return mCpuFamily;
} | [
"String getFamily();",
"private static String getOsFamily()\n {\n Set families = getValidFamilies();\n\n Iterator iter = families.iterator();\n while ( iter.hasNext() )\n {\n String fam = (String) iter.next();\n if ( Os.isFamily( fam ) )\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
creates prefix grammar for pricerange | public static Grammar prefixGrammarPricerange (OSFactory factory){
Grammar g = factory.createGrammar("gr_Pricerange");
g.addGrammarString(factory.factory.getOWLLiteral("[Hello | Hi] [and] [((I want [to] | I would like [to] | I'd like [to] | I need [to] | I wanna) [eat] [something]) | ((It | The restaurant) (shoul... | [
"public static Grammar prefixGrammarRequestPricerangeName (OSFactory factory){\n\t\t\tGrammar g = factory.createGrammar(\"gr_Request_Pricerange_Name\");\n\t\t\tg.addGrammarString(factory.factory.getOWLLiteral(\"[Hello | Hi] (What's | What is) the pricerange of the restaurant\",\"en\"));\n\t\t\treturn g;\n\t\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AstStatementAssign__Group__5" $ANTLR start "rule__AstStatementAssign__Group__5__Impl" ../org.caltoopia.frontend.ui/srcgen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:15155:1: rule__AstStatementAssign__Group__5__Impl : ( ';' ) ; | public final void rule__AstStatementAssign__Group__5__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:15159:1: ( ( ';' ) )
// .... | [
"public final void rule__AstStatementAssign__Group__5() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:15148:1: ( rule__AstStatementAs... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
After the relationship is parsed, the relationship and local attributes must be prepared. | @Override
protected void prepare()
{
super.prepare();
this.localAttributes.prepare();
this.localPathTypes.prepare();
} | [
"protected abstract boolean populateAttributes();",
"void unnecessaryRelationshipTraversed();",
"void relationshipTraversed();",
"private void populateRelEa(RelationshipDef relDef, ResultSet rs) throws SQLException {\r\n String strVal = rs.getString(RELATIONSHIP_EA.ATTRIBUTE_NAME.columnName);\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.org.mydotey.codec.benchmark.data.proto.MultiStringData fNested = 2; | org.mydotey.codec.benchmark.data.proto.MultiStringData getFNested(); | [
"org.mydotey.codec.benchmark.data.proto.MultiStringDataOrBuilder getFNestedOrBuilder();",
"org.mydotey.codec.benchmark.data.proto.MultiStringData getFMultiString();",
"org.mydotey.codec.benchmark.data.proto.MultiStringDataOrBuilder getFMultiStringOrBuilder();",
"protobuf_unittest.LazyFieldsLite.LazyNestedInne... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Quietly convert JSON to a JsonNode. | private static JsonNode json2Node(String json) {
try {
return mapper.readTree(json);
} catch (IOException e) {
throw new IllegalStateException("Error mapping JSON: " + json, e);
}
} | [
"public static JsonNode json2Node(String json) throws IOException {\n return objectMapper.readTree(json);\n\n }",
"public static JsonNode parseObject(String json) throws IOException {\n return ObjectMapperHolder.getMapper().reader().readTree(json);\n }",
"public static JsonNode toJsonNode(Object d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method updates: licence_plate, motorhome_status and description_id | public void update(Motorhome motorhome) throws SQLException {
statement = connector.getConnection().prepareStatement("UPDATE motorhomes SET licence_plate=?, motorhome_status=?, description_id=? WHERE motorhome_id=?");
statement.setString(1, motorhome.getLicencePlate());
statement.setString(2, m... | [
"public void updateLicensePlate(LicensePlateForm form) {\n\t}",
"License update(License license);",
"public void setLicence(Long licence) {\r\n this.licence = licence;\r\n }",
"public void assignVehicle(String driversLicense, String licensePlateRecord, String startDate, String endDate,\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fetch records that have CODE IN (values) asynchronously | public CompletableFuture<List<cn.vertxup.lbs.domain.tables.pojos.LYard>> fetchByCodeAsync(List<String> values) {
return fetchAsync(LYard.L_YARD.CODE,values);
} | [
"List<T> getByCode(Collection<String> codes);",
"public CompletableFuture<List<cn.vertxup.fm.domain.tables.pojos.FSubject>> fetchByCodeAsync(List<String> values) {\n return fetchAsync(FSubject.F_SUBJECT.CODE,values);\n }",
"public Items[] findWhereCodeEquals(String code) throws ItemsDaoException;",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets array of all "Parcels" elements | public org.landxml.schema.landXML11.ParcelsDocument.Parcels[] getParcelsArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(PARCELS$6, target... | [
"@Nonnull\n public List<Parcel> getParcels() {\n return parcels;\n }",
"public java.util.List<org.landxml.schema.landXML11.ParcelsDocument.Parcels> getParcelsList()\r\n {\r\n final class ParcelsList extends java.util.AbstractList<org.landxml.schema.landXML11.ParcelsDocument.Parcels>... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
REQUIRES: user input EFFECTS: read api url and obtain recipes from userinput prompts | public static void readSource() throws IOException {
//// String url = "http://www.recipepuppy.com/api/";
// String url = "http://www.recipepuppy.com/api/?i=onions,garlic&q=omelet";
System.out.println("Input an ingredient that the dish must have");
// String ingredient = JOptionPane.showIn... | [
"public static ArrayList<Recipe> fetchRecipeData(){\n //Create a Url Object\n URL url = buldUrl();\n\n //Perform HTTP request to the url and return JSON response back\n String jsonREsponse = null;\n\n try {\n jsonREsponse = getResponseFromHttpUrl(url);\n\n }catch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Returns a table with the name cell | private Table getTable(String cell) {
Table table = null;
for(int i = 0; i < tables.size(); i++) {
if(tables.get(i).getName().equalsIgnoreCase(cell)) {
table = tables.get(i);
break;
}
}
return table;
} | [
"java.lang.String getTable();",
"public Node findTable(String name) {\n\tNodeList tree = total.getDocumentElement().getChildNodes();\n\tfor (int i = 0; i < tree.getLength(); i++) {\n Node n = tree.item(i);\n if (n.getNodeName().equals(\"table\") &&\n n.getAttributes().getNamed... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Read and parse a transaction's attribute that should contain money. | private static Money readMoney(Currency currency, NamedNodeMap attributes, String name)
throws PortfolioParserException {
Node node = attributes.getNamedItem(name);
if(node == null) {
String error = Locale.getString("MISSING_TRANSACTION_ATTRIBUTE", name);
throw new Portf... | [
"private Money parseMoney(String money) {\n\t\tfinal String currency = money.substring(0, \"CAD$\".length());\n\t\tfinal String amount = StringUtils.replace(money.substring(\"CAD$\".length(), money.length()), \".\", \"\");\n\t\treturn new Money(Integer.parseInt(amount), currency);\n\t}",
"public Money getMoney(St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
index of lowest value node | public int getSmallestNodeIndex() {
HuffmanTreeNode[] heap = this.getHuffmanHeap();
int smallest = 0;
for (int i = 1; i < heap.length; i++) {
if (heap[smallest].compareTo(heap[i]) > 0)
smallest = i;
}
return smallest;
} | [
"public int\ngetNodeIndexMin();",
"public int indexOfMin()\n {\n int prevPos = position;\n moveToStart();\n if (size != 0)\n {\n int indexOfMin = 0;\n E minValue = current.getValue();\n do\n {\n if (current.getValue().compar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes the object from the database with with specified class type and id. | @SuppressWarnings("rawtypes")
protected static void removeObject(Class cls, Integer id) throws DAOException {
try {
Session session = Helper.getHibernateSession();
// first load the object with the current session.
// the object must be loaded in this session before it is... | [
"public void delete(String id, Class classType) throws Exception {\n mapaDAO.get(classType).delete(id);\n }",
"public void removeByTypeId(long typeId);",
"public void removeByType(long typeId);",
"public static void removeByTypeId(long typeId) {\n\t\tgetPersistence().removeByTypeId(typeId);\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generates the Depth Of Inheritance Tree (DIT) Primary Metric and its subceeded values in the csv file. | private void generateDIT() {
try {
// Primary Metric Depth Of Inheritance Tree (DIT)
csvWriter.append(",,Depth Of Inheritance Tree (DIT),,,,");
// For each class in the project
for(String key: classNames) {
csvWriter.append(String.valueOf(calc.getPrimaryMetrics().getDepthOfInheritanceTree().get(key)) ... | [
"private void generateInheritance() {\n\t\ttry {\n\t\t\t// Design Principle Inheritance\n\t\t\tcsvWriter.append(\",Inheritance,,,,,\");\n\t\t\t// For each class in the project\n\t\t\tfor(String key: classNames) {\n\t\t\t\tcsvWriter.append(String.valueOf(calc.getDesignPrincipals().getInheritance().get(key)) + \",\")... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column change_operation.root_entity_content | public String getRootEntityContent() {
return rootEntityContent;
} | [
"public String getChangedEntityContent() {\r\n return changedEntityContent;\r\n }",
"public String getParentEntityContent() {\r\n return parentEntityContent;\r\n }",
"public void setRootEntityContent(String rootEntityContent) {\r\n this.rootEntityContent = rootEntityContent == null ? ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column goods.price | public Long getPrice() {
return price;
} | [
"public BigDecimal getGoodsPrice() {\r\n return goodsPrice;\r\n }",
"public Double getGoodsPrice() {\n return goodsPrice;\n }",
"java.lang.String getPrice();",
"public java.math.BigDecimal getPrice() {\n\t\treturn getValue(org.jooq.examples.mysql.sakila.tables.FilmList.FILM_LIST.PRICE);\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__QualifiedName__Group_2__0" $ANTLR start "rule__QualifiedName__Group_2__0__Impl" ../br.com.levysiqueira.dsl.textualusecase.ui/srcgen/br/com/levysiqueira/dsl/textualusecase/ui/contentassist/antlr/internal/InternalTextualUseCase.g:3370:1: rule__QualifiedName__Group_2__0__Impl : ( '.' ) ; | public final void rule__QualifiedName__Group_2__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../br.com.levysiqueira.dsl.textualusecase.ui/src-gen/br/com/levysiqueira/dsl/textualusecase/ui/contentassist/antlr/internal/InternalTextualUseCase... | [
"public final void rule__QualifiedName__Group_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../br.com.levysiqueira.dsl.textualusecase.ui/src-gen/br/com/levysiqueira/dsl/textualusecase/ui/contentassist/antlr/internal/InternalTe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the center vector of the map. | public native vector kbGetMapCenter(); | [
"public com.leapmotion.leap.Vector center() {\n\t\treturn center;\n\t}",
"public final Vector getCenter() {\n\t\treturn (center == null) ? computeCenter() : center;\n\t}",
"public Vector getCenter() {\n\t\treturn point.plus(size.scaledBy(0.5));\n\t}",
"public Vector3f getCenter ()\n {\n return _v1.a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the specification invalid id test. | @Test
public void getSpecificationInvalidIdTest() throws Exception {
String uri = "/v1/api/specification/-1";
mvc.perform(MockMvcRequestBuilders.get(uri)).andExpect(MockMvcResultMatchers.status().isNotFound());
log.info("getSpecificationInvalidIdTest successful");
} | [
"@Test(expected = IllegalArgumentException.class)\r\n\tpublic void testGetSetInvalidID() {\r\n\t\tLecture lecture = new Lecture();\r\n\t\tlecture.setId(invalidID);\r\n\t}",
"int getErrorId();",
"@Test\n public void testGetWithInvalidId() {\n assertNull(dao.get(Guid.newGuid()));\n }",
"@Test\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns an unmodifiable view of all tables in namespaces that have namespace quotas. | public Set<TableName> getNamespaceQuotaTables() {
return Collections.unmodifiableSet(tablesWithNamespaceQuotas);
} | [
"public Multimap<String, TableName> getTablesByNamespace() {\n Multimap<String, TableName> tablesByNS = HashMultimap.create();\n for (TableName tn : tablesWithNamespaceQuotas) {\n tablesByNS.put(tn.getNamespaceAsString(), tn);\n }\n return tablesByNS;\n }",
"TablesWithQuotas fetchAll... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the minutes, seconds, and milliseconds, in UTC. Returns the millisecond representation of the adjusted date. | public final native double setUTCMinutes(int minutes, int seconds, int millis) /*-{
this.setUTCMinutes(minutes, seconds, millis);
return this.getTime();
}-*/; | [
"public final native double setUTCMinutes(int minutes, int seconds) /*-{\n this.setUTCMinutes(minutes, seconds);\n return this.getTime();\n }-*/;",
"public final native double setUTCMinutes(int minutes) /*-{\n this.setUTCMinutes(minutes);\n return this.getTime();\n }-*/;",
"public final native dou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |