query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Step 631 Insert in grp dim relation tables details | private ArrayList insertGrpDimRelDtls(String dimId, ArrayList queries, String relId, HashMap memIdMap, String grpId, String dbDimId) {
PbDb pbdb = new PbDb();
String getMemIdQuery = "SELECT max(member_id) FROM prg_qry_dim_member";
// String getQryDimRelDtlsQuery = "SELECT rel_level FROM PRG_QR... | [
"private boolean insertDimensionGrp(String tabId, String dimtabId, String dimIds, String elementId, String dbDimId, String dbDimTabId) {\r\n boolean flag = false;\r\n String finalQuery = \"\";\r\n ArrayList queries = new ArrayList();\r\n Object[] Obj = null;\r\n HashMap dimTabMap ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
remove the contacts from list when swipes and return the position of the deleted contact | public int removeContact(Contacts c)
{
int position=contacts.indexOf(c);
contacts.remove(c);
priorityContactsRecyclerAdapter.notifyDataSetChanged();
if(priorityContactsRecyclerAdapter.getItemCount()==0)
empty_bucket.setVisibility(View.VISIBLE);
else
em... | [
"private void deleteContact() {\n System.out.format(\"\\033[31m%s\\033[0m%n\", \"Delete Contact\");\n System.out.format(\"\\033[31m%s\\033[0m%n\", \"=========================\");\n\n InputHelper inputHelper = new InputHelper();\n int ans = inputHelper.readInt(\"Type the position\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
convert a Day into it's equivalent number | private int getNumberFromDay(Days day)
{
int num = 1;
switch(day){
case Monday:
num = 1;
break;
case Tuesday:
num = 2;
break;
case Wednesday:
num = 3;
break;
case Thursday:
num = 4;
break;
case Friday:
num = 5;
break;
case Saturday:
num = 6;
b... | [
"public static int convertWeekDay(WeekDay day) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\tif (day == SUNDAY)\r\n\t\t\treturn (int)Math.pow(2,1);\r\n\t\telse\r\n\t\t\treturn (int)Math.pow(2,values().length - day.ordinal() + 1);\r\n\t}",
"int getDayNum();",
"public int getDay() {\r\n return Forma... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column tc_member_history_repayment.repeat_amount | public void setRepeatAmount(BigDecimal repeatAmount) {
this.repeatAmount = repeatAmount;
} | [
"public void setRepaidAmount(Long repaidAmount) {\n this.repaidAmount = repaidAmount;\n }",
"public BigDecimal getRepeatAmount() {\n\t\treturn repeatAmount;\n\t}",
"public void setRepeat(int repeat) {\n ModelEvent<?> event = new ModelEventBuilder( ModelEventType.REPEAT_MODIFIED, this ).setOldVa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set a handler which receives all events from host. | void setEventHandler(UpdateEventHandler<HostNetworkEvent> eventHandler); | [
"public void setHandler(Handler handler) {\r\n this.handler = handler;\r\n }",
"public void registerHandler( Handler handler ) {\r\n this.dispatcher = handler;\r\n }",
"public void setHandler ( Object handler ) {\r\n\t\tgetStateHelper().put(PropertyKeys.handler, handler);\r\n\t\thandleAttribute(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create permission, note that permissionType + targetId should be unique | public PortalPermission createPermission(PortalPermission permission); | [
"public void createPermission(String designId, String userId, String permission) throws StorageException;",
"PermissionType createPermissionType();",
"@RequestMapping(value = \"/permissions\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if is downloadable. | @Override
public boolean isDownloadable() {
return true;
} | [
"public abstract boolean isDownloadable();",
"public final boolean isDownload() {\n\t\treturn download;\n\t}",
"public boolean isDownloading()\r\n {\r\n return statusObj.value == STATUS_CANDIDATE_DOWNLOADING;\r\n }",
"public boolean isDownloadsEnabled() {\n return this.downloadsEnabled;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs the quick search field overridden in subclasses. Do not override this method as an end user implement the "constructQuickSearchFilter" instead | protected abstract TextField constructSearchField(); | [
"private SearchQuery() {\n initFields();\n }",
"public SearchField() {\n }",
"Search createSearch();",
"private SearchBar() {\n controller = FilterController.getInstance();\n initComponents();\n createNewQueryPanel();\n }",
"private ISearchRequest createSearchRequest() {\n\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clear all the data from the article | public void clearArticle(){
this.authors = "";
this.journal = "";
this.title = "";
this.year = "";
this.volume = "";
this.number = "";
this.pages = "";
this.doi = "";
this.month = "";
} | [
"public void clearAllData();",
"public static void clearWikiData()\n {\n createdWikiData.clear();\n }",
"public void clearDatasetContent(){\n this.listOfPossibleTaxId.clear();\n this.listOfExcludedPublications.clear();\n this.datasetValue = null;\n }",
"void clearTocData()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves the current secondary menu (right). | public View getSecondaryMenu() {
return mViewMenu.getSecondaryContent();
} | [
"public SysMenu getSysMenu();",
"Menu getMenu();",
"public String getSecondary() {\n return secondary;\n }",
"public void showSecondaryMenu() {\n\t\tshowSecondaryMenu(true);\n\t}",
"public static Menu getMenu() {return menu;}",
"public NavMenu getNavMenu();",
"public String getRight() {\n\t\tS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Access method for epaCertNo. | public String getEpaCertNo() {
return epaCertNo;
} | [
"public String getCertNo() {\r\n return certNo;\r\n }",
"public void setEpaCertNo(String aEpaCertNo) {\n epaCertNo = aEpaCertNo;\n }",
"public String getCertNo() {\n return certNo;\n }",
"public String getCertno() {\n return certno;\n }",
"public BigDecimal getCERTIFI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is used to fill a panel with the Long term weather Data | private void createFormThree() throws IOException{
weatherData[] tmp = new weatherData[8]; //holds weather data objects
try {
app.grabLongTerm(app.getVisibleLocation().getCityID(), app.getUnits()); //grabs long term weather data info from database
} catch (IOException e) {
throw new IOException("er... | [
"public void setData() {\n ArrayList<Double> airPressure = new ArrayList<Double>();\n ArrayList<Double> insideTemp = new ArrayList<Double>();\n ArrayList<Double> insideHum = new ArrayList<Double>();\n ArrayList<Double> outsideTemp = new ArrayList<Double>();\n ArrayList<Double> win... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the status by user name of this register. | @AutoEscape
@Override
public String getStatusByUserName(); | [
"@Override\n public java.lang.String getStatusByUserName() {\n return _person.getStatusByUserName();\n }",
"@Override\n\tpublic String getStatusByUserName() {\n\t\treturn model.getStatusByUserName();\n\t}",
"public java.lang.String getUserStatus() {\r\n return userStatus;\r\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Appends and returns a new empty "selector" element | public org.w3.x2001.xmlSchema.SelectorDocument.Selector addNewSelector()
{
synchronized (monitor())
{
check_orphaned();
org.w3.x2001.xmlSchema.SelectorDocument.Selector target = null;
target = (org.w3.x2001.xmlSchema.SelectorDocument.Selector)get_store().add_eleme... | [
"private void addElementSelector() {\n\t\tvalue += ELEMENT_NAMES_AND_PSEUDO_ELEMENT_UNITS;\n\t}",
"org.apache.xmlbeans.impl.xb.xsdschema.SelectorDocument.Selector addNewSelector();",
"@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorT build();",
"private Style createResolvedStyle(String selector) {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Always returns null because this container doesn't hold any strategies. | @Override
public IResolveDependencyStrategy resolve(final Object key) throws StrategyContainerException {
// throw new StrategyContainerException(String.format("Strategy not found for %s", String.valueOf(key)));
return null;
} | [
"StrategyHolder getStrategyHolder();",
"public ClassLoadingStrategy getStrategy() {\n return strategy;\n }",
"public IStrategy getStrategy() {\n\t\treturn currStrategy;\n\t}",
"private Strategy getStrategyInstance() {\n if (strategyInstances.containsKey(strategy)) {\n return strate... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Play media file method. It plays the file in the given position of the private repository of the current user. | public void playMediaFile(int i) throws AppException {
if( i < privRep.get(currentUser).getSize() && i >= 0){
File file = this.privRep.get(currentUser).getAt(i);
if(file instanceof MediaFile){
FileFolder ff = new FileFolder();
ff.addFile(file);
... | [
"public void play(File file);",
"public void showMediaFile(int i, int sec) throws AppException{\r\n if (i < privRep.get(currentUser).getSize() && i >= 0) {\r\n File file = this.privRep.get(currentUser).getAt(i);\r\n if (file instanceof MediaFile) {\r\n FileFolder ff = n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor of L2GuardInstance (use L2Character and L2NpcInstance constructor). Actions : Call the L2Character constructor to set the _template of the L2GuardInstance (copy skills from template to object and link _calculators to NPC_STD_CALCULATOR) Set the name of the L2GuardInstance Create a RandomAnimation Task that ... | public L2GuardInstance(int objectId, L2NpcTemplate template)
{
super(objectId, template);
setIsMortal(true);
ThreadPoolManager.getInstance().scheduleAiAtFixedRate(new ReturnTask(), RETURN_INTERVAL, RETURN_INTERVAL + Rnd.get(60000));
} | [
"protected Gate( String name, float delay ) {\n\tthis.name = name;\n\tthis.delay = delay;\n }",
"public void create() {\n Vec2 vertices[] = new Vec2[4];\n vertices[0] = new Vec2(9.5f, 0.0f);\n vertices[1] = new Vec2(0.0f, -15.0f);\n vertices[2] = new Vec2(-9.5f, 0.0f);\n vert... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Scanner Best Of Tokenizer :) | void scanner() {
System.out.println("---------- Scanner" + ++exampleNumber
+ "----------");
String source = "asdqw easd casa";
Scanner s1 = new Scanner(source);
// hasNext() - testuje wartosc kolejnego tokena, ale go nie pobiera
// next() - pobiera kolejny token
// domyslnie bialy znak jest de... | [
"public void extractTokens(Scanner scanner)\n {\n author = scanner.next();\n isbn = scanner.next();\n super.extractTokens(scanner);\n }",
"public String[] scan() {\n\t\t// tokens will consist of the tokens that we have read from the file\n\t\tArrayList<String> tokens = new ArrayList<>();\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Load grammars imported by the specified RuleGrammar if they are not already loaded. | private void loadImports(RuleGrammar grammar, URL context, boolean recurse, boolean reload) throws GrammarException, IOException {
for (RuleName ruleName : grammar.listImports()) {
// System.out.println ("Checking import " + ruleName);
String grammarName = ruleName.getFullGrammarName();
RuleGrammar imported... | [
"public void loadAllImports() throws GrammarException,\n\t\t\tIOException {\n\t\tfor (BaseRuleGrammar grammar : grammars.values()) {\n\t\t\tloadImports(grammar, null, false, false);\n\t\t}\n\t}",
"public static Grammar loadGrammar(Tool tool, String fileName, LexerGrammar lexerGrammar) {\n\t\tGrammarRootAST gramma... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleuserDefinedTypeRef" $ANTLR start "ruleuserDefinedTypeRef" InternalMASL.g:530:1: ruleuserDefinedTypeRef returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (this_domainName_0= ruledomainName this_SCOPE_1= RULE_SCOPE )? this_typeName_2= ruletypeName ) ; | public final AntlrDatatypeRuleToken ruleuserDefinedTypeRef() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token this_SCOPE_1=null;
AntlrDatatypeRuleToken this_domainName_0 = null;
AntlrDatatypeRuleToken this_typeName_2 = null;
... | [
"public final String entryRuleuserDefinedTypeRef() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleuserDefinedTypeRef = null;\n\n\n try {\n // InternalMASL.g:523:58: (iv_ruleuserDefinedTypeRef= ruleuserDefinedTypeRef EOF )\n // Inte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of ParticipantDetailBean | public ParticipantDetailBean() {
HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
long participantId = 0;
if (request.getParameter("participantId") != null) {
participantId = Lo... | [
"private ParticipantDetail createStagedParticipantDetail(StagedParticipant participant) {\n\t\tStagedParticipantDetail detail = StagedParticipantDetail.from(participant);\n\t\tdetail.setUpdatedTime(null);\n\t\treturn detail;\n\t}",
"public PrescriptionDetailCreator() {\n detail=new PrescriptionDetail();\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Asserts that a collection of ValidationResult matches a reference collection. If it doesn't, log some extra diagnostic information. This method was written in response to intermittent test failures. The extra diagnostic information is an attempt to further investigate the nature of the failures. A partial stack trace i... | private void assertResultsEquals( Collection<ValidationResult> reference, Collection<ValidationResult> results )
{
List<ValidationResult> referenceList = orderedList( reference );
List<ValidationResult> resultsList = orderedList( results );
if ( !referenceList.equals( resultsList ) )
... | [
"private void assertResultsEquals(\n Collection<ValidationResult> reference, Collection<ValidationResult> results) {\n List<ValidationResult> referenceList = orderedList(reference);\n List<ValidationResult> resultsList = orderedList(results);\n boolean success = referenceList.equals(resultsList);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ This timezone definition will be ignored because its TZID is formatted as a valid Olsen ID. Because the Olsen ID is valid, biweekly will not look for a VTIMEZONE component that matches it. | @Test
public void date_with_olsen_id_that_also_matches_vtimezone_component() throws Exception {
final VTimezone vtimezone = new VTimezone("/Europe/Paris");
{
StandardTime standard = new StandardTime();
standard.setDateStart(new DateTimeComponents(2014, 9, 1, 2, 0, 0, false));
standard.setTimezoneOff... | [
"String getTimeZoneId();",
"public void setTzid(String tzid) {\n this.tzid = tzid;\n }",
"public static TimeZone getTimeZone(String ID);",
"public String getTheTimeZone(String theID);",
"@Override\n public TimeZoneIdentifierParameter getTimeZoneIdentifier() { return timeZoneIdentifier; }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if the current frame contains a binary image. | @Override
public boolean isEnabled(ImagoFrame frame)
{
// check frame class
if (!(frame instanceof ImageFrame))
return false;
// check image
ImageHandle doc = ((ImageFrame) frame).getImageHandle();
Image image = doc.getImage();
if (image == nu... | [
"public boolean isBinary() {\n return this.isHexBinary() || this.isBase64Binary();\n }",
"public boolean isBinary();",
"public boolean isBinary() {\r\n\t\treturn ((IMember)inCurrentState()).isBinary();\r\n\t}",
"public boolean isImage () {\n byte[] bytes = getContentBytes ();\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form SindicatoNew | public SindicatoNew() {
initComponents();
} | [
"public CrearPedidos() {\n initComponents();\n }",
"public creacionempresa() {\n initComponents();\n mostrardatos();\n }",
"public com.alain.puntocoma.model.Catalogo create(long catalogoId);",
"protected void creaViste() {\n /* variabili e costanti locali di lavoro */\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a game event with the given stage. | public GameEvent(EventType<GameEvent> eventType, Stage currentStage) {
super(eventType);
this.stage = currentStage;
} | [
"public Stage createStage(Stage stage) {\n if (uniqueCheck(stage.getID())) {\n stageData.add(stage);\n return stage;\n } else {\n System.out.println(\"Proposed stage does not have a unique ID.\");\n return null;\n }\n }",
"private void createStag... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Turns on the bluetooth adapter for the device | private void turnOn(View v) {
bluetoothAdapter.enable();
} | [
"private void turnOnBluetoothDevice() {\n // Checking Bluetooth device via BluetoothAdapter\n if (BluetoothAdapter.getDefaultAdapter() == null) {\n // If bluetooth adapter is not found, cancel initialization\n resultInFail(\"Bluetooth device is required!\");\n } else if (!... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the first segment found that are completely inside the specified rectangle. Search this node, and all sub nodes. | public GSegment findSegmentInside(int x0, int y0, int x1, int y1) {
// TODO: Stop after first found
List segments = findSegmentsInside(x0, y0, x1, y1);
return segments.size() == 0 ? null : (GSegment) segments.get(segments
.size() - 1);
} | [
"public MyRectangle intersect(MyRectangle rectangle) {\n double left = Math.max(this.min_x, rectangle.min_x);\n double right = Math.min(this.max_x, rectangle.max_x);\n double bottom = Math.max(this.min_y, rectangle.min_y);\n double top = Math.min(this.max_y, rectangle.max_y);\n\n if (left <= right &&... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Search an index with facets for given facet requests. | public static List<FacetResult> searchWithRequest(IndexReader indexReader,
TaxonomyReader taxoReader, FacetIndexingParams indexingParams,
FacetRequest... facetRequests) throws Exception {
Query q = new TermQuery(new Term(SimpleUtils.TEXT, "white"));
return searchWithRequestAndQuery(q, indexReader, t... | [
"public static List<FacetResult> searchWithRequestAndQuery(Query q,\n IndexReader indexReader, TaxonomyReader taxoReader,\n FacetIndexingParams indexingParams, FacetRequest... facetRequests)\n throws Exception {\n \n ExampleUtils.log(\"Query: \" + q);\n // prepare searcher to search against\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is used to populate the error location or the node which causes the error.. | private void populateSiteErrorMessage(
TreeNode node, StringBuilder errorMessage, JsonNode jsonNode) {
String path = jsonNode.get("instance").get("pointer").asText();
String[] splitPaths = path.split("/");
// this means some node inside the top level has a problem..
if (spli... | [
"public String getErrorLocation() {\r\n return errorLocation;\r\n }",
"private static ErrorDescription createErrorDesc(Throwable error, IDocument doc) throws BadLocationException {\r\n int errorStart = -1;\r\n int errorEnd = -1;\r\n int errorLine = -1;\r\n String message = nu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sort work placements on all Form R Part Bs. | @Execution
public void migrate() {
Comparator<Work> compareEndDates = Comparator.comparing(Work::getEndDate,
Comparator.nullsFirst(Comparator.reverseOrder()));
for (FormRPartB formRPartB : mongoTemplate.findAll(FormRPartB.class)) {
List<Work> originalList = new ArrayList<>(formRPartB.getWork())... | [
"private void sortParts() {\r\n Collections.sort(this.parts, new Comparator<Cell>() {\r\n \r\n @Override\r\n public int compare(Cell c1, Cell c2) {\r\n if (c2.getPositionOnParent().x - c1.getPositionOnParent().x > 10 && c1.getPositionOnParent().x < c2.getPositi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field phone is set (has been assigned a value) and false otherwise | public boolean isSetPhone() {
return this.phone != null;
} | [
"public boolean isSetPhone() {\n return this.phone != null;\n }",
"public boolean isSetPhone() {\n\t\treturn phone != null;\n\t}",
"public boolean isSetPhone() {\n\t\treturn this.phone != null;\n\t}",
"public boolean isSetTelephone() {\n return this.telephone != null;\n }",
"public boolean isSet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unsets the "Address2" element | public void unsetAddress2()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ADDRESS2$2, 0);
}
} | [
"public void unsetAddress2()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(ADDRESS2$2, 0);\n }\n }",
"public void unsetAddress1()\n {\n synchronized (monitor())\n {\n check_orphaned();\n g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Cancel market data for an Order | public static void cancelMarketData(Order o) {
connection.cancelMktData(o.m_orderId);
} | [
"void cancelOrder(String orderKey);",
"CancelOrderResponse cancelOrder(CancelOrderRequest cancelOrderRequest);",
"public void cancelOrder() {\r\n\r\n\t}",
"ContractOrderResult cancelContractOrder(CancelContractOrderRequest cancelOrderRequest);",
"public void cancelTrade() {\n tradeManager.rejectTrade... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getId method, of class MailNotifier. | public void testGetId() {
System.out.println("getId");
MailNotifier instance = new MailNotifier();
String expResult = "1";
instance.setId(expResult);
String result = instance.getId();
assertEquals(expResult, result);
} | [
"public void testSetId() {\n System.out.println(\"setId\");\n String Id = \"\";\n MailNotifier instance = new MailNotifier();\n instance.setId(Id);\n \n }",
"public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a comma separated list of time and date functions. | public String getTimeDateFunctions() throws SQLException {
return "curdate,curtime,dayname,dayofmonth,dayofweek,dayofyear,hour,"
+ "minute,month,monthname,now,quarter,timestampadd,timestampdiff,"
+ "second,week,year";
} | [
"public String getTimeDateFunctions()\n throws SQLException\n {\n return \"\";\n }",
"public String getTimeDateFunctions()\n throws SQLException\n {\n // The SimpleText driver does not support any Time or Date functions\n\n return \"\";\n }",
"public List<String> getFunc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
increases the true negatives of this class by one | public void increaseTrueNegatives() {
++this.trueNegatives;
} | [
"public void increaseFalseNegatives() {\n ++this.falseNegatives;\n }",
"public void increaseFalsePositives() {\n ++this.falsePositives;\n }",
"private void incrNegativeCount(){\n m_NegativeCount++;\n }",
"public void increaseTruePositives() {\n ++this.truePositives;\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets number of second before autoscroll starts. Example: _control ctrlSetAutoScrollDelay 5 | public native static void ctrlSetAutoScrollDelay(GameControl oper1, float oper2); | [
"public native static float ctrlAutoScrollDelay(GameControl oper1);",
"public native static void ctrlSetAutoScrollSpeed(GameControl oper1, float oper2);",
"public void setAutoScroll( boolean auto )\n\t{\n\t\tm_autoScroll = auto;\n\t\tm_model.setViewWindow(m_viewWindowStart, m_viewWindowLength, m_autoScroll);\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ You are given two 32bit numbers, N and M, and two bit positions, i and j. Write a method to set all bits between i and j in N equal to M (e.g., M becomes a substring of N located at i and starting at j). EXAMPLE: Input: N = 10000000000, M = 10101, i = 2, j = 6 Output: N = 10001010100 | public static int updateBits(int n, int m, int i, int j) {
int max = ~0; /* All 1’s */
// 1’s through position j, then 0’s
int left = max - ((1 << j) - 1);
// 1’s after position i
int right = ((1 << i) - 1);
// 1’s, with 0s between i and j
int mask = lef... | [
"private static int insertMintoN(int M, int N, int i, int j)\r\n\t{\n\t\t\r\n\t\tint right = (1 << i) -1; // will create a sequence of 00001111 i.e. 0 from MSB till ith location\r\n\t\t\r\n\t\tint left = (~0) << (j+1); // Will create a sequence of 11000000 i.e 1 from MSB till jth location\r\n\t\t\r\n\t\tint wi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
List zoneList = zoneRepository.findByZoneLike(search); | @Override
public List<ZoneVO> getZoneNameLike(String search) {
List<Zone> zoneList = zoneRepository.findByZoneContaining(search);
if(null != zoneList) System.out.println("zones mathcing the search are : " + zoneList.size());
return getVOListFromModel(zoneList);
} | [
"ISearchResults<? extends IZone> listZones(IZoneSearchCriteria criteria) throws SiteWhereException;",
"public List<Location> findByCountry(Country country);",
"List<Customer> findByAddressStreet(String name);",
"List<Customer> findAllByCustomerNameLike(String customerName);",
"List<Usuario> findByusuarionom... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a List with all debug types based on the debug request parameter. | private List getDebugType() {
String debug = pageContext.getRequest().getParameter("debug");
if (debug == null) {
return null;
}
List debugTypes = new ArrayList();
if (debug.indexOf(RESP_TYPE) != -1) {
debugTypes.add(RESP_TYPE);
}
if (debug.indexOf(STDOUT_TYPE) != -1) {
debugTypes.add(ST... | [
"public List<DressType> getDressTypes(){ \r\n\t\tList<DressType> list=new ArrayList<DressType>(); \r\n\t\tlist=ht.loadAll(DressType.class); \r\n\t\treturn list; \r\n\t}",
"public static TypeFieldEntry[] getTypeFieldEntries() {\n return channel.getTypeFieldEntries(AbstractPortletStat.class);\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the vehicleSpeed property. | public float getVehicleSpeed() {
return vehicleSpeed;
} | [
"public float getSpeed() {\n return this.speedValue;\n }",
"public double getSpeed() {\r\n\t\treturn travelSpeed.getSpeed();\r\n\t}",
"public void setVehicleSpeed(float value) {\n this.vehicleSpeed = value;\n }",
"public DoubleProperty getMySpeed() {\n\t\treturn mySpeed;\n\t}",
"public i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
all digits of value 8 or 9 multiply by 2 example: 45326791 => 453267181 | private void multiplyDigits(List<Integer> digits) {
log.debug("method=multiplyDigitsStart, digits=" + digits);
for (int i = 0; i < digits.size(); i++) {
if (digits.get(i) == 8 || digits.get(i) == 9) {
digits.set(i, digits.get(i) * 2);
}
}
log.debug... | [
"public String multiply_2(String num1, String num2) {\n\t int m = num1.length(), n = num2.length();\n\t int[] pos = new int[m + n];\n\t \n\t for(int i = m - 1; i >= 0; i--) {\n\t for(int j = n - 1; j >= 0; j--) {\n\t int mul = (num1.charAt(i) - '0') * (num2.charAt(j) - '0'); \n\t ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Annotate an update of a text node. | public abstract Change annotateUpdateText (TextNode nodeA, TextNode nodeB, Element diffNode, ChangeFactory changeFac); | [
"void updateText(String text);",
"void updateText( String text );",
"public void updateText( String text ) {\n\t\tthis.text = text;\n\t}",
"public abstract Change annotateUpdateAttribute (TreeNode nodeA, TreeNode nodeB, String attributeName, Element diffNode, ChangeFactory changeFac);",
"int TextUpdate(int ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test getMessage(Object) method, if argument is null, throw NullPointerException. | public void testGetMessageNullPointerException() {
assertNotNull("setup fails", uploadRequestValidator);
try {
uploadRequestValidator.getMessage(null);
fail("if argument is null, throw NullPointerException");
} catch (NullPointerException e) {
// good
... | [
"public void testGetMessage_NullObj() {\r\n try {\r\n validator.getMessage(null);\r\n fail(\"testGetMessage_NullObj is failure.\");\r\n } catch (IllegalArgumentException iae) {\r\n // pass\r\n } catch (Exception e) {\r\n fail(\"Unknown exception occur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
For each point: go through all other points and find slope of line connecting them. All the points with same slopes will be on the same line. So maintain a HashMap from slope to number of points. (Also check cases for duplicate points and points with same x value carefully). Return maximum count among all slopes in all... | public static int maxPoints(Point[] points) {
if(points.length==0) return points.length;
int globalMax=1;
Double INFINITY= Double.MAX_VALUE;
for(Point p:points){
int samePoint=0, maxVal=1;
//Using BigDecimal because precision of Double was not enough to different... | [
"public int maxPoints(int[][] points) {\n if (points == null || points.length == 0) return 0;\n int len = points.length, res = 0;\n if (len <= 2) return len;\n\n for (int i = 0; i < len; i++) {\n int dup = 0, cur = 0;\n Map<String, Integer> map = new HashMap<>();\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct a tag object representing the specified EPC | public TagData(byte[] epc, byte[] crc)
{
// if (checkLen(epc.length) == false)
// {
// throw new IllegalArgumentException(
// String.format("Invalid EPC length %d bytes for protocol %s",
// epc.length, getProtocol().toString()) + " epc : " + ReaderUtil.byteArrayToHexStrin... | [
"public TagData(String epc)\n {\n this(epc, null);\n }",
"public TagData(String epc, String crc)\n {\n int len, start;\n\n len = epc.length();\n\n if ((len % 2) != 0)\n {\n throw new IllegalArgumentException(\"Hex string is not an integer number of bytes\");\n }\n\n start = 0;\n if... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Register resource mapping in httpService whiteboard | @Override
public void init() {
DefaultResourceMapping resourceMapping = new DefaultResourceMapping();
resourceMapping.setAlias( "/" + this.getName() + "/" + this.getVersion() );
resourceMapping.setPath( this.getResourceRootPath() );
this.serviceReference = this.bundleContext.registerService( Resource... | [
"private void registerResource(){\n\t}",
"private void registerEndpoints() {\n register(CollectionManagementResource.class);\n }",
"void bind(ResourceService service);",
"@Override protected void myRoutes(){\r\n\t\t\t\t\taddRestAPI(\"/book\",BookRessource.class);\r\n\t\t\t\t\taddRestAPI(\"/book/{title}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test the Constructor, of class AtomString. | @Test
public void testAtomString_3() {
LOGGER.info("testAtomString_3");
AtomString atomString1 = new AtomString("Hello");
AtomString atomString2 = new AtomString("Hello");
assertEquals(atomString1, atomString2);
} | [
"@Test\n public void testAtomString_8() {\n LOGGER.info(\"testAtomString_8\");\n final CharSequence s = \"Hello\";\n AtomString atomString1 = new AtomString(\"Hello\");\n AtomString atomString2 = new AtomString(s);\n assertEquals(atomString1, atomString2);\n }",
"@Test\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor of PlayerPaidForProperty class | public PlayerPaidForProperty(Player owner, Property property, double amount) {
this.amount = amount;
this.owner = owner;
this.property = property;
} | [
"public Player(double money)\n {\n spendingMoney = money;\n }",
"public PolicyAssignmentProperties() {\n }",
"public PlayerProperties() {\n\t\tthis(PropertyType.HEALTH.getValue(), PropertyType.MORALE.getValue(), PropertyType.DAY.getValue());\n\t}",
"Player(int startAmount, int startIncome) {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the last project in the ordered set where status = &63;. | public static Project fetchByStatus_Last(int status,
OrderByComparator<Project> orderByComparator) {
return getPersistence().fetchByStatus_Last(status, orderByComparator);
} | [
"public String retrieveLastTaskIdOfProject(Long projectId);",
"public static Project findByStatus_Last(int status,\n\t\tOrderByComparator<Project> orderByComparator)\n\t\tthrows com.liferay.projects.dashboard.project.exception.NoSuchProjectException {\n\t\treturn getPersistence().findByStatus_Last(status, orderBy... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Implementations of this interface add constraints to when a node with pending global merges may be implicitly transitioned to Maintenance state in the default bucket space. This is to avoid flipflopping nodes between being available and in maintenance when merge statistics change in a running system. | public interface MaintenanceTransitionConstraint {
boolean maintenanceTransitionAllowed(int contentNodeIndex);
} | [
"public void markAvailableMerge() throws JNCException {\n markLeafMerge(\"available\");\n }",
"public void markSendRejForRoamingRestrictMerge() throws JNCException {\n markLeafMerge(\"sendRejForRoamingRestrict\");\n }",
"public void markSrvPriorityMerge() throws JNCException {\n markL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct a new DFloat64 with name n. | public DFloat64 newDFloat64(String n) {
return new DFloat64(n);
} | [
"public DFloat64 newDFloat64(String n) {\n return new asciiF64(n);\n }",
"public DFloat32 newDFloat32(String n) {\n return new DFloat32(n);\n }",
"public DFloat32 newDFloat32(String n) {\n return new asciiF32(n);\n }",
"public DArray newDArray(String n) {\n return new MatlabArray(n);\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Validates a given line for its length. | static void validateLineLength(String line, int validLength) throws InvalidInputException {
if (line == null) {
throw new InvalidInputException("Line is null");
}
validateFileSize(line.length());
if (line.length() != validLength) {
throw new InvalidInputException(... | [
"private static void assureLength(String line, int length, int expected) {\n\t\tif (length != expected) {\n\t\t\tLOGGER.warn(\"Line '{}' must have length {}, was {}\", line, expected, length);\n\t\t}\n\t}",
"int getLineLength(int line) throws BadLocationException;",
"@Test\n\tpublic void canCheckIfSizeIsInRange... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Action__Group__0" $ANTLR start "rule__Action__Group__0__Impl" ../br.com.levysiqueira.dsl.textualusecase.ui/srcgen/br/com/levysiqueira/dsl/textualusecase/ui/contentassist/antlr/internal/InternalTextualUseCase.g:2041:1: rule__Action__Group__0__Impl : ( ( rule__Action__NameAssignment_0 ) ) ; | public final void rule__Action__Group__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.g:2045:1... | [
"public final void rule__Action__Group__0() 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/InternalTextualUseCase.g:... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
2. Create SauceOptions instance with common w3c options | protected SauceOptions createSauceOptions() {
return SauceOptions.firefox()
.setBrowserVersion("85.0")
.setPlatformName(SaucePlatform.WINDOWS_8)
.setUnhandledPromptBehavior(UnhandledPromptBehavior.IGNORE)
.build();
} | [
"public static ChromeOptions getChromeOptions(){\n\t\tChromeOptions options=new ChromeOptions();\n\t\toptions.addArguments(\"--start-maximized\");\n\t//\toptions.addArguments(\"--headless\");\n\t\toptions.addArguments(\"--ignore-certificate--errors\");\n\t\toptions.addArguments(\"--disable-popup-blocking\");\n\t\to... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
solution adapted from JsonSerializationDemo CPSC 210 program (JsonReader.addThingies) MODIFIES: br EFFECTS: parses shelves from JSON object and adds them to bookroom | private void addShelves(BookRoom br, JSONObject jsonObject) throws DuplicateBookshelfNameException {
JSONArray jsonArray = jsonObject.getJSONArray("bookshelves");
for (Object json : jsonArray) {
JSONObject nextShelf = (JSONObject) json;
addShelf(br, nextShelf);
}
} | [
"private void addBooks(Bookshelf bookshelf, JSONObject jsonObject) throws StringTooShortException {\n JSONArray jsonArray = jsonObject.getJSONArray(\"bookList\");\n for (Object json : jsonArray) {\n JSONObject nextBook = (JSONObject) json;\n addBook(bookshelf, nextBook);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a List of "Feature" elements | java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList(); | [
"List<Feature> getFeatures();",
"org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray();",
"public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determine whether two Available objects's String data are equal | protected boolean hasSameStrings(final Available other) {
return (MiscellanousFcts.areIdenticalStrings(_sRecurrenceId, other._sRecurrenceId)) ;
} | [
"public boolean same(String s) { return same(new Data(s)); }",
"@Override\r\n public boolean equals(Object other) {\r\n \tif (other instanceof NewString) \r\n \t\treturn s.equals(other);\r\n \telse\r\n \t\treturn false;\r\n }",
"void testString(){\n String s1 = new String(\"XYZ\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ R19 == N20 var M25:M40 => logDose var N25:N40 => logarithmRealZero = sum(N25:N40)/ count(M25:M40) N19 => regressionParameterB sum(M25:M40) / count(M25:M40) | public void countRegressionParameterA() {
Double sumLogRealZero = sum(logarithmRealZeroTable);
Double countLogDose = count(logDoseList);
Double sumLogDose = sum(logDoseList);
regressionParameterA = sumLogRealZero / countLogDose - regressionParameterB * sumLogDose / countLogDose;
... | [
"static double logSum(double logA, double logB) {\n if (logA > logB) {\n double dif = logA - logB; // logA-logB because during lookup calculation dif is multiplied with -1\n return dif >= 20.0 ? logA : logA + logSumLookup[(int) (dif * _SCALE)];\n } else {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a spring whose minimum, preferred, and maximum values have the values: min, pref, and max respectively. | public static Spring constant(int min, int pref, int max) {
return new StaticSpring(min, pref, max);
} | [
"float getMinRange();",
"public float getDefaultMinRange(){\r\n return defaultMinRange;\r\n }",
"public float getStretchedSpringConst() {\r\n\t\treturn stretchedSpringConst;\r\n\t}",
"public static Spring constant(int pref) {\n return constant(pref, pref, pref);\n }",
"public double st... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns all MobileDeviceParameters for a given class. Each MobileDeviceParameter desribes one mobile device. isClasssDefined should be called first. | public MobileDeviceParameter[] getMembersOfClass(String className) {
return (MobileDeviceParameter[]) table.get(className);
} | [
"public Object[] getClassParams() {\r\n\t\treturn classParams;\r\n\t}",
"public Specific getSpecificDeviceClass() {\r\n\t\treturn specificDeviceClass;\r\n\t}",
"public abstract Class getParamClass();",
"public void setClassParms(String parms);",
"@ServiceMethod(returns = ReturnType.COLLECTION)\n public P... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates objects of the IData, ILogic, and IGUI types. Injects the data reference, into the logic facade. Injects the Logic reference, into the presentation facade. Calls the start method on the presentation Facade. | @Override
public void start(Stage primaryStage) {
IData data = new DataFacade();
ILogic logic = new LogicFacade();
IGUI ui = new PresentationFacade();
logic.injectData(data);
ui.injectLogic(logic);
ui.start();
} | [
"public static void createAndShowUI() {\r\n\t\tgetInstance();\r\n\t}",
"private void launch()\n {\n FrontEnd GUI = new FrontEnd();\n }",
"private void setupMachinery() {\n\t\tthis.renderer = new IntermediateRenderer();\n\t\tthis.controllerModel = new ControllerModel();\n\t\t\n\t\t// connect the Ren... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
List all Player who own the currentBadge | public ArrayList<BadgePlayer> badgeListPlayer (Badge currentBadge) {
//Select all Rows from the Player Table where the uuid is equal with the uuid in transaction (after filter all rows in transaction where the badgeId is equal with the currentBadge)
ResultSet result = myConnector.getQuerry("SELECT p.* FROM player p... | [
"public ArrayList<BadgePlayer> searchPlayersFromBadgeName (String badgeName) {\n\t\tif (this.checkBadgeName(badgeName)) {\n\t\t//ToDo: Test and Explain SQL Statement\n\t\tResultSet result = myConnector.getQuerry(\"SELECT p.* FROM player p WHERE p.uuid IN (SELECT t.uuid FROM transaction t WHERE t.badgeid IN (SELECT ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the name of the player and saves it to the properties file | public void setPlayerName(String newName) {
if(newName == null) {
return;
}
props.setProperty("name", newName);
saveProps();
} | [
"@Override\r\n\tpublic void SavePlayerName() {\r\n\t\tPlayer player = (Player)Player.getPlayerInstance();\r\n\t\t\r\n\t\tString file = \"PlayerName.txt\";\r\n\t\tString playerName = player.getName();\r\n\t\ttry{\r\n\t\t\tPrintWriter print = new PrintWriter(file);\r\n\t\t\tprint.println(playerName);\r\n\t\t}\r\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the clicked To Do List | private void getClickedList() {
ArrayList<ToDoList> toDoLists = toDoManager.getToDoManager();
for (int i = 0; i < toDoLists.size(); i++) {
currentToDoList = toDoLists.get(i);
String title = currentToDoList.getTitle();
if (title.equals(clickedList)) {
... | [
"@Override\n public ArrayList<String> getToDoItems() {\n return toDoItems;\n }",
"public ToDoItem getToDoItem() {\n return toDoItem;\n }",
"public List<Item> getToDoList(String username) throws ToDoListException;",
"public Set<ToDo> getToDo() {\n\t\treturn toDo;\n\t}",
"public static ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
framebufferUpdateStart() and framebufferUpdateEnd() are called at the beginning and end of an update. We use the speed of the connection, computed within beginRect() and endRect() to select the format and encoding appropriately, and then request another incremental update. | public void framebufferUpdateStart() {
} | [
"void requestNewUpdate()\n {\n if (formatChange) {\n if (fullColour) {\n //desktop.setPF(fullColourPF);\n } else {\n //desktop.setPF(rfb.PixelFormat(8,6,0,1,3,3,3,4,2,0));\n }\n String str = desktop.getPF().print();\n vlog.info(\"Using pixel format \"+str);\n cp.setPF... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check if flippedCard matches called card | public boolean validCard() {
if (this.calledCard != null) {
if (this.flippedCard.getTag().substring(1).equals(this.calledCard.getTag().substring(1))) {
return true;
}
else {
return false;
}
}
return true;
} | [
"public void checkForMatches(int second_flipped) {\n\n if (arrayOfCards[firstFlipped].getImageNum() == arrayOfCards[second_flipped].getImageNum()) {\n\n // If cards match\n arrayOfCards[firstFlipped].setMatched(true);\n arrayOfCards[second_flipped].setMatched(true);\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Attempts to send the given requery to provide the given downloader with more sources to download. May not actually send the requery if it doing so would exceed the maximum requery rate. | public synchronized boolean sendQuery(ManagedDownloader requerier,
QueryRequest query) {
//NOTE: this algorithm provides global but not local fairness. That is,
//if two requeries x and y are competing for a slot, patterns like
//xyxyxy or xyyxxy are a... | [
"private void resendWorkaround() {\r\n synchronized(waiters) {\r\n if(waiters.size() > 0 && lastResponseNumber == responseNumber && System.currentTimeMillis() - lastProcessedMillis > 450) {\r\n // Resend last request(s)\r\n for(Integer i : waiters.keySet()) {\r\n System.err.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GET /blacklists/:id : get the "id" blacklist. | @GetMapping("/blacklists/{id}")
@Timed
public ResponseEntity<Blacklist> getBlacklist(@PathVariable Long id) {
log.debug("REST request to get Blacklist : {}", id);
Optional<Blacklist> blacklist = blacklistService.findOne(id);
return ResponseUtil.wrapOrNotFound(blacklist);
} | [
"@GET(\"chat/users/{id}/blacklist\")\n Call<PageResourceChatBlacklistResource> getChatMessageBlacklist(\n @retrofit2.http.Path(\"id\") String id, @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page\n );",
"Blacklist selectByPrimaryKey(Integer id);",
"Blacklist selectB... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.axelar.tss.tofnd.v1beta1.RecoverResponse.Response response = 1; | public Builder setResponse(axelar.tss.tofnd.v1beta1.Tofnd.RecoverResponse.Response value) {
if (value == null) {
throw new NullPointerException();
}
response_ = value.getNumber();
onChanged();
return this;
} | [
"axelar.tss.tofnd.v1beta1.Tofnd.RecoverResponse.Response getResponse();",
"@java.lang.Override\n public axelar.tss.tofnd.v1beta1.Tofnd.RecoverResponse.Response getResponse() {\n @SuppressWarnings(\"deprecation\")\n axelar.tss.tofnd.v1beta1.Tofnd.RecoverResponse.Response result = axelar.tss.tofn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column u_code.SMODIFYTIME | public Date getSmodifytime() {
return smodifytime;
} | [
"public String getModifytime() {\n return modifytime;\n }",
"public Integer getModifyTime() {\n\t\treturn modifyTime;\n\t}",
"public String getModifyTime() {\n return modifyTime;\n }",
"public Date getModifyTime() {\r\n return modifyTime;\r\n }",
"public Date getModifytime() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets load balancer probe. | Observable<Probe> getAsync(String resourceGroupName, String loadBalancerName, String probeName); | [
"public com.google.cloud.run.v2.Probe getLivenessProbe() {\n if (livenessProbeBuilder_ == null) {\n return livenessProbe_ == null\n ? com.google.cloud.run.v2.Probe.getDefaultInstance()\n : livenessProbe_;\n } else {\n return livenessProbeBuilder_.getMessage();\n }\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert comments stats to a specific format that represents for the communication between a reporter and other developers. Format: A / B:5 / C:3 / D:6 in which A is a stakefolder and others are developers who have made interaction with A on the reported issue. The associated digits are the total number of communication... | public String toGraphEdges() {
if (commenterStats == null) {
return "";
}
StringBuilder bd = new StringBuilder();
Set<String> shSet = commenterStats.keySet();
String[] stakeholders = shSet.toArray(new String[shSet.size()]);
// Calculate communication between a... | [
"public void journalistCommentary() {\r\n Map<Competitor,Integer> res = this.ranking();\r\n System.out.println(\"\\n<<<<<<< Media >>>>>>>\");\r\n for (Map.Entry<Competitor,Integer> entry : res.entrySet()) \r\n System.out.println(entry.getKey().toString2());\r\n }",
"private void parseComments(Stri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new parametro por parametro pk. | public ParametroPorParametroPK() {
} | [
"public DatasetParameterPK() {\n }",
"public PrimaryKey(final int pk) {\n\t\tthis(Integer.valueOf(pk));\n\t}",
"public Parroquia(ParroquiaPK pk) {\n\t\tthis.pk = pk;\n\t}",
"public PrimaryKey(final String pk) {\n\t\tthis.fields = new Object[1];\n\t\tthis.fields[0] = (pk);\n\t}",
"PrimaryKey createPrimary... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Description: get the list by ajax. NOTE: Because jQuery ias plugin allows ajax GET method, we need to save the search criteria in session. | public ModelAndView itemTypeSearchAjax(HttpServletRequest request, HttpServletResponse response, UserItemSModel sc) throws Exception
{
ModelAndView mv = new ModelAndView("jsonView");
String hostUserId = request.getParameter("hostUserId");
sc.setUserId(hostUserId);
request.setAttribute(SC_ID_SESSION, ... | [
"void requestListData();",
"public ModelAndView custSearchGridAjax(HttpServletRequest request, HttpServletResponse response, HostCustSModel sc) throws Exception \n\t{\n\t\trequest.setAttribute(SC_ID_SESSION, \"Statistic_custSearchList\");\n\t\tmv = new ModelAndView(\"jsonView\");\n\t\t\n\t\tsc.setUserId(SessionUt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called whenever a reaction is removed in a channel. | protected void onReactionRemoved(String channel, String sender, String receiver, String emojiName) {} | [
"void removeChannel(Channel channel);",
"protected void channelRemoved (ChatChannel channel)\n {\n\tsuper.channelRemoved (channel);\n\n\tif (channel instanceof BaseLocus)\n\t{\n\t ((BaseLocus) channel).setUsers (null);\n\t if ( (channel instanceof BaseChannel)\n\t\t&& (channel.getJoinedState () != Chat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
first, we check if there is a q in the string | public static void qThere (String s) {
boolean foundQ = false;
for (int i=0; i<s.length(); ++i) { //iterate through every char
if (s.charAt(i) == 'q')
foundQ = true;
if (s.charAt (i) == 'Q')
foundQ = true;
}
if (foundQ){
System.out.println ("It contains the let... | [
"public static boolean quWord(String str) {\n\n\t\t//return str.substring(0, 2).toLowerCase().equals(\"qu\");\n\t\treturn str.indexOf(\"qu\") >= 0;\n\t}",
"private static int checkQuotation(String s) {\r\n\t\tint equalsPos = s.indexOf(\"=\");\r\n\t\tint quotePos = s.indexOf(\"\\\"\");\r\n\t\treturn (equalsPos + 1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set value of MessagesNextChunk | public final void setMessagesNextChunk(java.lang.Boolean messagesnextchunk)
{
setMessagesNextChunk(getContext(), messagesnextchunk);
} | [
"public final void setMessagesNextChunk(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Boolean messagesnextchunk)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.MessagesNextChunk.toString(), messagesnextchunk);\r\n\t}",
"public void setInboundChunk(entity.InboundChunk value);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Addition__Group__1__Impl" $ANTLR start "rule__Addition__Group_1__0" ../com.blasedef.onpa.ONPA.ui/srcgen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:7712:1: rule__Addition__Group_1__0 : rule__Addition__Group_1__0__Impl rule__Addition__Group_1__1 ; | public final void rule__Addition__Group_1__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:7716:1: ( rule__Addition__Group_1__0__Impl rule__Additi... | [
"public final void rule__Addition__Group_1__0__Impl() throws RecognitionException {\n int rule__Addition__Group_1__0__Impl_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 723) ) { retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Show dialog showing all the task in which streak has lost | private void showDialogStreakLost(List<TaskEntity> list) {
AlertDialog.Builder builder = new AlertDialog.Builder(this, R.style.AlertDialogLight);
builder.setTitle(getResources().getQuantityString(R.plurals.streakLost, list.size()));
builder.setItems(getTaskTitleArray(list), null);
// Ad... | [
"public void showLastTransCheck()\r\n {\r\n TransMeta transMeta = getActiveTransformation();\r\n if (transMeta==null) return;\r\n SpoonGraph spoonGraph = findSpoonGraphOfTransformation(transMeta);\r\n if (spoonGraph==null) return;\r\n \r\n CheckResultDialog crd = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
It prints out the information about the existing file set, the prefix set and their MACs. | public void print()
{
System.out.println("existing files:\n");
Iterator<Entry<String, byte[]>> existing = this.existingFile.entrySet().iterator();
while (existing.hasNext())
{
Entry<String, byte[]> entry = existing.next();
String key = entry.getKey();
byte[] macValue = e... | [
"public void printFiles() {\n\t\tSystem.out.println(\"Hashtable content:\");\n\t\tfor (String key : fileTable.keySet()) {\n\t\t\tSystem.out.println(\"File name:\" + key);\n\t\t\tSystem.out.println(\"Available server:\" + fileTable.get(key));\n\t\t}\n\t\tSystem.out.println();\n\t}",
"private void printAllFilesTabl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete an existing IndStates entity | @Transactional
public void deleteIndStates(IndStates indstates) {
indStatesDAO.remove(indstates);
indStatesDAO.flush();
} | [
"public void delete(UsStatePk pk) throws UsStateDaoException;",
"public void deleteTIndiaState(final Integer stateId) {\n\t\tLOGGER.info(\"=========== Delete TIndiaState ===========\");\n//\t\tfinal TIndiaState tIndiaState = gisDAO.get(clazz, stateId);\n//\t\tgisDAO.remove(tIndiaState);\n\t}",
"public void dele... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get a path from user and import the stop words list. | public void importStopWords(String path) {
File f = new File(path + "\\stop_words.txt");
Scanner scanner = null;
try {
scanner = new Scanner(f);
} catch (Exception e) {
e.printStackTrace();
}
if (scanner != null)
stopWords = new HashSet... | [
"private void loadStopWords() {\r\n IniConfig config = IniConfig.configInstance;\r\n String stopWordsPath = config.stopWords;\r\n\r\n try {\r\n BufferedReader input = new BufferedReader(new FileReader(stopWordsPath));\r\n String word;\r\n\r\n while ((word = inpu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get accessor for persistent attribute: valor2 | public abstract java.lang.String getValor2(); | [
"public java.lang.String getValor2();",
"public abstract java.lang.String getValor1();",
"public java.lang.String getValor1();",
"public String getValue(){\r\n return valor.valor;\r\n }",
"public abstract java.lang.String getValor3();",
"public java.lang.String getValor3();",
"@Transient\r\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
resize menu & reanchor println("ITEMS: " + this.Items.size()); | public void refreshMenu() {
this.Menu.setSize(this.Menu.getWidth(), this.Items.size() * (this.textSize + 4) + 4);
this.Menu.Camera.setPosition(0, 0);
this.anchorX();
this.anchorY();
//println("----------");
this.Menu.reposition((int) menuAnchor.x, (int) menuAnchor.y);
for (uTextButton t : this.Ite... | [
"private void resetMenu(int oldSize) {\r\n // first, remove all items from the JMenu\r\n for (int i=startIndex; i < (startIndex + oldSize); i++) {\r\n mruMenu.remove(startIndex);\r\n } // for\r\n // Now add all current items back in\r\n for (int i=0; i < mruItems.size(); i++) {\r\n JMenuIte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if the attribute "textPosition" is set. | public final boolean isTextPositionSetted() {
return engine.isPropertySetted(Properties.TEXT_POSITION);
} | [
"public boolean isSetPosition() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __POSITION_ISSET_ID);\n }",
"public boolean isSetParagraphText() {\n return this.paragraphText != null;\n }",
"public final boolean isText() {\n return this.getTopLevelType().equals(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the dKeepTime value for this EntityResMain. | public void setDKeepTime(java.util.Calendar dKeepTime) {
this.dKeepTime = dKeepTime;
} | [
"public java.util.Calendar getDKeepTime() {\n return dKeepTime;\n }",
"public boolean isKeepTime() {\r\n return ValueBindings.get(this, \"keepTime\", keepTime, false);\r\n }",
"@Override\n\tpublic void setModifiedTime(long modifiedTime) {\n\t\t_dlSyncEvent.setModifiedTime(modifiedTime);\n\t}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleMultiplicativeExpr" $ANTLR start "ruleMultiplicativeExpr" PsiInternalPaplj.g:1175:1: ruleMultiplicativeExpr returns [Boolean current=false] : (this_UnaryExpr_0= ruleUnaryExpr ( ( ( () otherlv_2= '' ) | ( () otherlv_4= '/' ) ) ( (lv_right_5_0= ruleUnaryExpr ) ) ) ) ; | public final Boolean ruleMultiplicativeExpr() throws RecognitionException {
Boolean current = false;
Token otherlv_2=null;
Token otherlv_4=null;
Boolean this_UnaryExpr_0 = null;
Boolean lv_right_5_0 = null;
try {
// PsiInternalPaplj.g:1176:1: ( (this_Unary... | [
"public final Boolean entryRuleMultiplicativeExpr() throws RecognitionException {\n Boolean current = false;\n\n Boolean iv_ruleMultiplicativeExpr = null;\n\n\n try {\n // PsiInternalPaplj.g:1168:60: (iv_ruleMultiplicativeExpr= ruleMultiplicativeExpr EOF )\n // PsiInternal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column dictionary.tenant_no | public void setTenantNo(String tenantNo) {
this.tenantNo = tenantNo;
} | [
"public void setTenant(String tenant)\n {\n this.tenant = tenant;\n }",
"public void setTenant(String tenantId);",
"public String getTenantNo() {\n return tenantNo;\n }",
"void setTenantId(java.lang.String tenantId);",
"public void setTenantId(int tenantId) {\n this.tenantId = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get raw data item standard deviations | public double[] rawItemStandardDeviations(){
if(!this.dataPreprocessed)this.preprocessData();
if(!this.variancesCalculated)this.meansAndVariances();
return this.rawItemStandardDeviations;
} | [
"public double rawStanadarDeviationOfItemStandardDeviations(){\n return rawItemStandardDeviationsSd;\n }",
"public double rawStandardDeviationOfItemMeans(){\n return rawItemMeansSd;\n }",
"public double rawItemStandardDeviation(String itemName){\n if(!this.dataPreprocessed)this.prepro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Register a callback to be invoked when the Matrix has changed for this View. An example would be the user panning or scaling the Photo. | public void setOnMatrixChangeListener(OnMatrixChangedListener listener) {
mAttacher.setOnMatrixChangeListener(listener);
} | [
"void onMatrixChanged(RectF rect, Matrix matrix);",
"void onMatrixChanged(RectF rect);",
"public static interface OnMatrixChangedListener {\n /**\n * Callback for when the Matrix displaying the Drawable has changed. This could be because\n * the View's bounds have changed, or the user has... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets instruction input of rover | public String getInstructions()
{
System.out.print("Enter the Rover's Instructions: ");
String instructions = scanner.nextLine();
return instructions;
} | [
"InputOperation getInputOperation();",
"R extractRawInputs(I input);",
"public String getInstruction(){\n\t\treturn this.instruction;\n\t}",
"public Operator<IN> getInput() {\n return this.input;\n }",
"Input getInputs();",
"private String getInput() {\n scanner = new Scanner(System.in);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Increases enemy shooting change by preset amount Increases level count by 1 Increases number of enemies by 1 | public void increaseDifficulty() {
this.levelNumber++;
this.shootingChance += shootingChanceIncrease;
if (this.numberofEnemies < this.maximumEnemies) {
this.numberofEnemies++;
}
} | [
"public void increaseLevel(boolean increase) {\r\n // represents the number of enemies that appear for the first 10 levels\r\n int[] largeSFQuantity = {2, 4, 4, 5, 5, 6, 6, 7, 7, 8};\r\n int[] pufferfishQuantity = {1, 1, 2, 2, 3, 3, 4, 4, 4, 5};\r\n int[] clamQuantity = {1, 1, 1, 2, 2, 2... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
setter for EndWithoutSpace sets The end offset without spaces counted in. | public void setEndWithoutSpace(int v) {
if (GeneType_Type.featOkTst && ((GeneType_Type)jcasType).casFeat_EndWithoutSpace == null)
jcasType.jcas.throwFeatMissing("EndWithoutSpace", "com.victorzhao.type.GeneType");
jcasType.ll_cas.ll_setIntValue(addr, ((GeneType_Type)jcasType).casFeatCode_EndWithoutSpace, v... | [
"public int getEndWithoutSpace() {\n if (GeneType_Type.featOkTst && ((GeneType_Type)jcasType).casFeat_EndWithoutSpace == null)\n jcasType.jcas.throwFeatMissing(\"EndWithoutSpace\", \"com.victorzhao.type.GeneType\");\n return jcasType.ll_cas.ll_getIntValue(addr, ((GeneType_Type)jcasType).casFeatCode_EndWi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the EDLClassDescription field. | public void setEDLClassDescription(java.lang.String value); | [
"public void setClassDescription(String classDescription) {\n this.classDescription = classDescription;\n }",
"public void setClassDescription(java.lang.String value);",
"public void setProductClassDesc(String value) {\n setAttributeInternal(PRODUCTCLASSDESC, value);\n }",
"public void set... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Serializes a token to TDelegationToken. | public static DelegationToken
toDelegationToken(Token<DelegationTokenIdentifier> t) throws IOException {
if (t == null) return null;
return new DelegationToken(
encodeAsString(t.getIdentifier()),
encodeAsString(t.getPassword()),
t.encodeToUrlString().getBytes());
} | [
"public static final String toJSON(AuthToken token) {\n try {\n return mapper.writer().writeValueAsString(token);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"public static Token<DelegationTokenIdentifier>\n fromTDelegationToken(Delegatio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set value of SFTPConfiguration_PrivateKey_Connection | public final void setSFTPConfiguration_PrivateKey_Connection(com.mendix.systemwideinterfaces.core.IContext context, sftpconnection.proxies.PrivateKeyConnection sftpconfiguration_privatekey_connection)
{
if (sftpconfiguration_privatekey_connection == null)
getMendixObject().setValue(context, MemberNames.SFTPConfig... | [
"public final void setSFTPConfiguration_PrivateKey_Connection(sftpconnection.proxies.PrivateKeyConnection sftpconfiguration_privatekey_connection)\n\t{\n\t\tsetSFTPConfiguration_PrivateKey_Connection(getContext(), sftpconfiguration_privatekey_connection);\n\t}",
"public ConnectInfo setPrivateKey(final String priv... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of Persistence, of class SegmentedOasisList. | @Test
public void testPersistence_Elements_Overflow() throws Exception {
File file = File.createTempFile("oasis-collection-test-persistence", "");
file.mkdirs();
file.deleteOnExit();
SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);
Collection c = Array... | [
"@Test\n public void testPersistence_Custom_Store() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testPersistence_Custom_Store\");\n file.mkdirs();\n file.deleteOnExit();\n\n File saveToFile = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This interface defines a strategy for sending simple mails. Can be implemented for a variety of mailing systems due to the simple requirements. For richer functionality like MIME messages, consider JavaMailSender. Allows for easy testing of clients, as it does not depend on JavaMail's infrastructure classes: no mocking... | public interface MailSender {
/**
* Send the given simple mail message.
* @param simpleMessage the message to send
* @throws MailParseException in case of failure when parsing the message
* @throws MailAuthenticationException in case of authentication failure
* @throws MailSendException in case of failure w... | [
"public interface IMailSendService {\n\n\t/**\n\t * 套用模板发送邮件\n\t * \n\t * @param mailBean\n\t * @throws MailException\n\t */\n\tpublic abstract void sendWithTemplate(MailBean mailBean) throws MailException;\n\n\t/**\n\t * 套用模板发送邮件,带有附件\n\t * @param mailBean\n\t * @throws MailException\n\t */\n\tpublic abstract void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |