query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
$ANTLR end "ruleAlgorithme" $ANTLR start "entryRuleMetrique" InternalMyDsl.g:625:1: entryRuleMetrique returns [EObject current=null] : iv_ruleMetrique= ruleMetrique EOF ;
public final EObject entryRuleMetrique() throws RecognitionException { EObject current = null; EObject iv_ruleMetrique = null; try { // InternalMyDsl.g:625:49: (iv_ruleMetrique= ruleMetrique EOF ) // InternalMyDsl.g:626:2: iv_ruleMetrique= ruleMetrique EOF ...
[ "public final EObject entryRuleAlgorithme() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAlgorithme = null;\n\n\n try {\n // InternalMyDsl.g:584:51: (iv_ruleAlgorithme= ruleAlgorithme EOF )\n // InternalMyDsl.g:585:2: iv_ruleAlgorithme= ruleAl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
encounterRam This method is used when one ships in an encounter rams another. It calls the ship rams method that deals damage to both ships and displays a summary.
public void encounterRam(Ship attacker, Ship target) { attacker.ramShip(target); System.out.println(attacker.getType() +" rammed the enemy ship dealing 40 damage to the enemy and 24 damage to itself."); }
[ "public void gettingRammed(EnemyBot ramBot) {\r\n\t\tif (gotTarget) {\r\n\t\t\tfor (int i = 0; i < enemyTracker.getEnemyList().size(); i++) {\r\n\t\t\t\tif (enemyTracker.getEnemyList().get(i).getName().equals(ramBot.getName()) && (!ramBot.getName().equals(radarTarget.getName()))) {\r\n\t\t\t\t\t\tnewRadarTarget = e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method remove all provisioning recipient for role id given in parameter
private void deleteProvisioningRecipient(UUID roleId) { SysProvisioningBreakRecipientFilter filter = new SysProvisioningBreakRecipientFilter(); filter.setRoleId(roleId); for (SysProvisioningBreakRecipientDto recipient : provisioningBreakRecipientService.find(filter, null) .getContent()) { LOG.debug("Remove...
[ "public void delete(Long id) {\n log.debug(\"Request to delete Recipiente : {}\", id);\n recipienteRepository.deleteById(id);\n }", "void removeRole(Role role);", "void deleteTrackerNotificationRecipients(final Integer id);", "public void removeRecipientFromList(String recipient) {\n s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the end time of the sale
public String endTime(){ saleEnded = Calendar.getInstance().getTime(); DateFormat dateFormat = new SimpleDateFormat("yyyy-mm-dd HH:mm:ss"); String endTime = dateFormat.format(time); return endTime; }
[ "public Date getEndtime() {\r\n return endtime;\r\n }", "public Date getEnd_time() {\n return end_time;\n }", "public java.lang.String getTime_end() {\r\n return time_end;\r\n }", "public java.lang.Long getTimeEnd() {\n return timeEnd;\n }", "public Date getUseTimeEnd() {\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the health property: Health of backend server.
public ApplicationGatewayBackendHealthServerHealth health() { return this.health; }
[ "public String getHealthStatus()\n {\n return healthStatus;\n }", "public String getHealthStatus() {\n\t\treturn this.healthStatus;\n\t}", "public java.lang.Integer getHealthStatus()\r\n {\r\n return this.healthStatus;\r\n }", "public String getHealthy() {\n return healthy;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XConstructorCall__Group_3__0__Impl" $ANTLR start "rule__XConstructorCall__Group_3__1" ../org.xtext.guicemodules.ui/srcgen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13494:1: rule__XConstructorCall__Group_3__1 : rule__XConstructorCall__Group_3__1__Impl rule__XConstruc...
public final void rule__XConstructorCall__Group_3__1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13498:1: ( rule__XConstructorCall_...
[ "public final void rule__XConstructorCall__Group_3__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13539:1: ( ( ( r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Code Block'.
CodeBlock createCodeBlock();
[ "public CodeBlock() {}", "Code createCode();", "public Block block(String label, Code code) {\n Block l = new Block(label, code);\n blocks.add(l);\n return l;\n }", "InlineCodeC createInlineCodeC();", "Block createBlock();", "public String getCodeBlock() {\n return codeBlock;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is similar to addPart, but we just check to see if this part can be added to an existing part, without actually adding it to the campaign (because its already there). Should be called up when a part goes from 1 daysToArrival to zero.
public void arrivePart(Part p) { if (null != p.getUnit()) { return; } p.setDaysToArrival(0); addReport(p.getArrivalReport()); int quantity = p.getQuantity(); Part spare = checkForExistingSparePart(p); if (null != spare) { if (p instanceof A...
[ "public boolean addPartFromItem(ItemPart partItem, IWrapperNBT partData, Point3d offset, boolean doingConstruction){\n \t//Get the part pack to add.\n\t\tVehiclePart packPart = getPackDefForLocation(offset);\n\t\tAPart partToAdd = null;\n\t\tAPart parentPart = null;\n\t\t//Check to make sure the spot is free.\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Extract the "to typed" field from an encoded relationship string.
public boolean relationshipToTyped(String rel_str) { StringTokenizer st = new StringTokenizer(rel_str, BundlesDT.DELIM); String fm_hdr = Utils.decFmURL(st.nextToken()), fm_ico = Utils.decFmURL(st.nextToken()); boolean fm_typed = st.nextToken().toLowerCase().equals("true"); String to_hdr = Utils.decFmURL(s...
[ "protected static String untypedRelation(String typedRelation) {\n int indexOfTyping = typedRelation.indexOf(\"_TYPE_\");\n String rtn = typedRelation;\n if (indexOfTyping >= 0) {\n rtn = typedRelation.substring(0, indexOfTyping);\n }\n if (rtn.startsWith(\"per_\")) {\n rtn = \"per:\" + rtn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
checkKey function check whether character k exists in word if not, return false;else return true, and also update mask
private boolean checkKey(char k) { int index = word.indexOf(k); if (index == -1) { //k doesn't exist in word guess_number--; return false; } else { //k exist in the word while (index != -1) { //update mask mask = mask.substring(0, index...
[ "private boolean checkIfKeyWord() {\n\t\tchar[] testFor = {'F', 'O', 'R'};\n\t\tchar[] testEnd = {'E', 'N', 'D'};\n\t\tif(testKeyword(testFor)) return true;\n\t\telse if(testKeyword(testEnd)) return true;\n\t\telse return false;\n\t}", "private boolean isKeyWord(char c) {\r\n\t\tString s = \"\";\r\n\t\ts = c.toSt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Process the change form of a feature
@Action( ACTION_MODIFY_FEATURE ) public String doModifyFeature( HttpServletRequest request ) { populate( _feature, request ); // Check constraints if ( !validateBean( _feature, VALIDATION_ATTRIBUTES_PREFIX ) ) { return redirect( request, VIEW_MODIFY_FEATURE, ...
[ "public void featureModelChanged();", "Feature update(Feature feature);", "public void featureChanged(Feature f) {\n\t\tredraw();\n\t}", "protected void handleComboModified() {\n\t\tif (!isRefreshing()\n\t\t\t\t&& getFeatureValue() != getCSingleObjectChooser()\n\t\t\t\t\t\t.getSelection()) {\n\n\t\t\tTransact...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column FreeHost_Product_VPS.HourMBin19
public void setHourmbin19(Integer hourmbin19) { this.hourmbin19 = hourmbin19; }
[ "public void setHourmb19(Integer hourmb19) {\r\n this.hourmb19 = hourmb19;\r\n }", "public void setHourmb11(Integer hourmb11) {\r\n this.hourmb11 = hourmb11;\r\n }", "public void setHourmbin11(Integer hourmbin11) {\r\n this.hourmbin11 = hourmbin11;\r\n }", "public void setHourmbi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clones this path and appends given position to it.
public Path cloneAndAppend(BoardPosition pos) { ArrayList<BoardPosition> steps = (ArrayList<BoardPosition>)((ArrayList<BoardPosition>) this.Nodes).clone(); steps.add(pos); return new Path(steps); }
[ "public Path cloneAndAppend(Path path)\r\n {\r\n \tif(this.Nodes == null)\r\n \t\treturn new Path(path.Nodes);\r\n \tArrayList<BoardPosition> steps = (ArrayList<BoardPosition>)((ArrayList<BoardPosition>) this.Nodes).clone();\r\n \tList<BoardPosition> toAppend = path.getPath();\r\n \tif(steps.size(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__InterfaceParameterList__Group_1__0__Impl" $ANTLR start "rule__InterfaceParameterList__Group_1__1" InternalDsl.g:20819:1: rule__InterfaceParameterList__Group_1__1 : rule__InterfaceParameterList__Group_1__1__Impl ;
public final void rule__InterfaceParameterList__Group_1__1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDsl.g:20823:1: ( rule__InterfaceParameterList__Group_1__1__Impl ) // InternalDsl.g:20824:2: rule__InterfaceParameterList__Grou...
[ "public final void rule__InterfaceParameterList__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:20796:1: ( rule__InterfaceParameterList__Group_1__0__Impl rule__InterfaceParameterList__Group_1__1 )\n // In...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This example shows how to find and remove all annotations containing text with a particular formatting from a PDF document.
public static void run() { PdfLoadOptions loadOptions = new PdfLoadOptions(); // Constants.InDocumentPdf is an absolute or relative path to your document. Ex: "C:\\Docs\\document.pdf" Watermarker watermarker = new Watermarker(Constants.InDocumentPdf, loadOptions); PdfContent pdfCon...
[ "public static void main(String[] args) throws IOException, FileNotFoundException {\n\t\t\n\t\t\n\t\tString regex = \"[0-9]+\";\n\t\tString data = \"1313\";\n\t\tSystem.out.println(data.matches(regex));\n\t\tString regex1 = \"[0-9]+\";\n\t\tString data1 = \" 112121 sdf \";\n\t\tSystem.out.println(data1.ma...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Dialog box to edit friends
public void createEditFriendsAlert(String name) { final String finalName = name; CharSequence[] editFriend = getBaseContext().getResources() .getStringArray(R.array.editFriend); AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this); alertDialogBuilder.setTitle(finalName).setNegativeBut...
[ "private void showEditProfileDialog() {\n String options[] ={\"Edit Name\", \"Edit Phone\", \"Change Password\"};\n //alert dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n //set title\n builder.setTitle(\"Choose Action\");\n //set items to d...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Caches the c r m_ trn_ address in the entity cache if it is enabled.
public static void cacheResult( com.ifl.rapid.customer.model.CRM_Trn_Address crm_Trn_Address) { getPersistence().cacheResult(crm_Trn_Address); }
[ "@Override\n\tpublic void cacheResult(Nir nir) {\n\t\tentityCache.putResult(\n\t\t\tNirModelImpl.ENTITY_CACHE_ENABLED, NirImpl.class,\n\t\t\tnir.getPrimaryKey(), nir);\n\n\t\tnir.resetOriginalValues();\n\t}", "@Override\n\tpublic void cacheResult(AddressChangeReqDetails addressChangeReqDetails) {\n\t\tEntityCache...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the scale end.
public double getScaleEnd() { return m_dScaleEnd; }
[ "public double getEnd() {\n\t\treturn end;\n\t}", "public double getEnd()\r\n\t{\r\n\t\treturn this.intervalList.get(0).getEnd();\r\n\t}", "public double getEndValue() {\n return endValue_;\n }", "public double getEndValue() {\n return endValue_;\n }", "public void setScaleEnd(double sca...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update this farm's correction factor by calculating the expected haul (estimated storage status) and the actual haul (sum of haul and remaining resources). This call will do nothing if no spy information is available or if no haul information is available. The correction factor delta is limited to +/ 10 percent to redu...
private void updateCorrectionFactor(FightReport pReport) { if (pReport.getHaul() != null && pReport.getSpyedResources() != null) { logger.debug("Updating correction factor"); int haulSum = pReport.getHaul()[0] + pReport.getHaul()[1] + pReport.getHaul()[2]; int storageSum = pR...
[ "private void updateHaulInformation(FightReport pReport) {\n if (pReport.getHaul() == null) {\n return;\n }\n // get haul and update hauled resources\n hauledWood += pReport.getHaul()[0];\n hauledClay += pReport.getHaul()[1];\n hauledIron += pReport.getHaul()[2];...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
======================================================= Finding no. of set bits
public static int noOfSetBits(int n) { int count = 0; while (n < 0) { count++; n = n - (n & (-n)); } return count; }
[ "public int getNumBitsSet()\n \t{\n \t\tint count = 0;\n \n \t\tfor (int index = getLength() - 1; index >= 0; index--)\n \t\t{\n \t\t\tif (isSet(index))\n \t\t\t{\n \t\t\t\tcount++;\n \t\t\t}\n \t\t}\n \n \t\treturn count;\n \t}", "static int countSetBits(int n)\r\n {\r\n int count = 0;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Backup report email recipients
@ZAttr(id=459) public void addBackupReportEmailRecipients(String zimbraBackupReportEmailRecipients) throws com.zimbra.common.service.ServiceException { HashMap<String,Object> attrs = new HashMap<String,Object>(); StringUtil.addToMultiMap(attrs, "+" + Provisioning.A_zimbraBackupReportEmailRecipients,...
[ "@ZAttr(id=459)\n public String[] getBackupReportEmailRecipients() {\n return getMultiAttr(Provisioning.A_zimbraBackupReportEmailRecipients);\n }", "@ZAttr(id=459)\n public void setBackupReportEmailRecipients(String[] zimbraBackupReportEmailRecipients) throws com.zimbra.common.service.ServiceExcep...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is ugly. It exposes an edge case of saving just as we're switching to a new iteration.
@Override public void finishIteration() { railroad.save(); System.out.println("SAVING!"); super.finishIteration(); }
[ "public void saved()\r\n {\r\n /////////////////////////////////\r\n // TODO: work with cloned value\r\n }", "private void saveCurrentObject() {\n\t}", "public void bestSaved(Solution solution) {\r\n iLastImprovingIter = iIter;\r\n }", "public void saveState() {\n\t}", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column TRSDET_SWITCHED.TRF_AC_CY
public BigDecimal getTRF_AC_CY() { return TRF_AC_CY; }
[ "public BigDecimal getTRS_AC_CY() {\r\n return TRS_AC_CY;\r\n }", "public BigDecimal getTO_TRS_AC_CY() {\r\n return TO_TRS_AC_CY;\r\n }", "public BigDecimal getTRF_AC_SL() {\r\n return TRF_AC_SL;\r\n }", "public BigDecimal getTRS_AC_SL() {\r\n return TRS_AC_SL;\r\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
refresh the color of the icon from the ColorSetI
public void redoColor() { colorIcon.setColor(getColor()); }
[ "public void update() {\n\t\tif (color == 0) {\n\t\t\ttry {\n\t\t\t\tsetIcon(new ImageIcon(ImageIO.read(new File(\"resources\\\\red.png\"))));\n\t\t\t} catch (IOException e) {\n\t\t\t\ttry {\n\t\t\t\t\tsetIcon(new ImageIcon(ImageIO.read(new File(\"resources/red.png\"))));\n\t\t\t\t} catch (IOException e2) {\n\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method mark payments for format
public Iterator markPaymentsForFormat(List customers, Timestamp paydate, String paymentTypes);
[ "public void makePayment() {\n // update payment status to 'paid' with the new amount\n CSVHandler csv = new CSVHandler();\n if(yearDue < LocalDate.now().getYear()) {\n csv.changeTaxPaymentStatus(eircode, yearDue, TaxCalculator.overdueFees(amount,yearDue,LocalDate.now().getYear()));\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
boolean hasNtoMTable() Method hasOmitLocking
public boolean hasOmitLocking() { return this._has_omitLocking; }
[ "boolean isUnlocked( ModelObject mo );", "public boolean isOnDemandTable() {\n return read == 0 && write == 0;\n }", "protected abstract boolean isLockRequired();", "boolean hasUnLockLevel();", "boolean isUnLock();", "Boolean getHasTable();", "public boolean isUnlockable(SoftLock lock);", "boolean...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[Deprecated: Use EnbAdvancedConfigProfileClone] Clone a eNodeB Advanced Profile from the NMS. Requires NBIF Extensions Licence.
@WebResult(name = "EnbAdvancedProfileConfigCloneResult", targetNamespace = "http://Airspan.Netspan.WebServices") @RequestWrapper(localName = "EnbAdvancedProfileConfigClone", targetNamespace = "http://Airspan.Netspan.WebServices", className = "Netspan.NBI_15_5.Lte.EnbAdvancedProfileConfigClone") @WebMethod(opera...
[ "@WebResult(name = \"EnbAdvancedConfigProfileCloneResult\", targetNamespace = \"http://Airspan.Netspan.WebServices\")\n @RequestWrapper(localName = \"EnbAdvancedConfigProfileClone\", targetNamespace = \"http://Airspan.Netspan.WebServices\", className = \"Netspan.NBI_15_5.Lte.EnbAdvancedConfigProfileClone\")\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a listener that would receive events upon changes of the provider presence status.
void addProviderPresenceStatusListener(ProviderPresenceStatusListener listener);
[ "public void addProviderPresenceStatusListener(\n ProviderPresenceStatusListener listener)\n {\n synchronized(providerPresenceStatusListeners){\n providerPresenceStatusListeners.add(listener);\n }\n }", "public void providerStatusChanged(ProviderPresenceStatusChangeEven...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the fridayStartTime2 value for this Account.
public void setFridayStartTime2(java.lang.String fridayStartTime2) { this.fridayStartTime2 = fridayStartTime2; }
[ "public void setFridayEndTime2(java.lang.String fridayEndTime2) {\n this.fridayEndTime2 = fridayEndTime2;\n }", "public void setSaturdayStartTime2(java.lang.String saturdayStartTime2) {\n this.saturdayStartTime2 = saturdayStartTime2;\n }", "public void setFridayStartTime1(java.lang.String fr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'field932' field. doc for field932
public java.lang.CharSequence getField932() { return field932; }
[ "public java.lang.CharSequence getField932() {\n return field932;\n }", "public java.lang.CharSequence getField928() {\n return field928;\n }", "public java.lang.CharSequence getField928() {\n return field928;\n }", "public void setField932(java.lang.CharSequence value) {\n this.field93...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
only eat `static` if it being used as a keyword and not a member name.
private boolean eatStaticIfNotElementName() { if (peek(TokenType.STATIC) && isClassElementStart(peekToken(1))) { eat(TokenType.STATIC); return true; } return false; }
[ "public boolean isStatic()\r\n \t{\r\n \t\treturn accessSpecifier.isStatic;\r\n \t}", "public final void mRULE_KW_STATIC() throws RecognitionException {\n try {\n int _type = RULE_KW_STATIC;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalParser.g:29836:16: ( 'static' ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
insert list realm object
void insertAsync(List<? extends RealmObject> data);
[ "private void insertObjectsIntoSession(\n final StatefulKnowledgeSession knowledgeSession,\n final List<Object> list) {\n for (final Iterator<Object> it = list.iterator(); it.hasNext();) {\n final Object object = it.next();\n knowledgeSession.insert(object);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column v_eqinquiry.inquiryDate
public void setInquirydate(Date inquirydate) { this.inquirydate = inquirydate; }
[ "void setInvoiceDate(Date invoiceDate);", "public Date getInquirydate() {\n return inquirydate;\n }", "void setInvoicedDate(Date invoicedDate);", "public void setINVOICE_DATE(Date INVOICE_DATE) {\n this.INVOICE_DATE = INVOICE_DATE;\n }", "public void setInvoiceDate(Date invoiceDate) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This creates an SSLConfig using a JKS file.
public SSLConfig(@NonNull File jksFile, @NonNull String storePassword, @NonNull String keyPassword){ this.sslCertificateType = JKS; this.jksFile = jksFile; this.storePassword = storePassword; this.keyPassword = keyPassword; }
[ "public static Configuration createServerSSLConfig(String serverKS,\n String password, String keyPassword, String trustKS, String trustPassword,\n String excludeCiphers) throws IOException {\n return createSSLConfig(SSLFactory.Mode.SERVER,\n serverKS, password, keyPassword, trustKS, trustPassword,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Extracts info from method's annotation if it's a JAXRS annotation
private void putAnnotationInfo(Annotation annotation){ if (methodAnnotationExtractors.containsKey(annotation.annotationType())){ methodAnnotationExtractors.get(annotation.annotationType()).extractInfo(annotation); } else { System.out.println("No data to extract from " + annotation.annotationType()); } }
[ "AnnotationMetadata getAnnotationMetadata();", "public String getAnnotation();", "public ParsedAnnotationInfo getAnnotations();", "private Annotation fetchAnnotation(){\n return AnnotatedElementUtils.findMergedAnnotation(bean.getClass(), SpikeArrest.class);\n }", "public interface AnnotationAccess...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form UpdateBranch
public UpdateandRemoveBranch() { initComponents(); }
[ "public BranchCreationPage clickNewBranchButton() {\r\n\t\tthis.newBranchButton.click();\r\n\t\treturn PageFactory.initElements(driver, BranchCreationPage.class);\r\n\t}", "private void createAndSetNewBranch()\n {\n Date startDateOfArticle = getStartDateOfArticle();\n final String branchId = startDateOfArt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the status of this employee interview schedule.
@Override public int getStatus() { return _employeeInterviewSchedule.getStatus(); }
[ "@Override\n public long getEmployeeInterviewScheduleId() {\n return _employeeInterviewSchedule.getEmployeeInterviewScheduleId();\n }", "@Override\n public long getInterviewScheduleId() {\n return _employeeInterviewSchedule.getInterviewScheduleId();\n }", "public String getEmployment_s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Transpose scores1 to scores0 boolean[][]
protected boolean[][] transpose1to0(boolean[][]scores11){ int n0 = scores11.length; int n1 = scores11[0].length; boolean[][] scores00 = new boolean[n1][n0]; for(int i=0; i<n0; i++){ for(int j=0; j<n1; j++){ scores00[j][i] = scores11[i][j]; } ...
[ "protected double[][] transpose0to1(double[][]scores00){\n int n0 = scores00.length;\n int n1 = scores00[0].length;\n double[][] scores11 = new double[n1][n0];\n for(int i=0; i<n0; i++){\n for(int j=0; j<n1; j++){\n scores11[j][i] = scores00[i][j];\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
removeOverlay hides the overlay image
public void removeOverlay() { if (this.isVisible) { //moves the textfields to the front then move the overlay(instructions) to the back this.moveToFront(t1); this.moveToFront(t2); this.moveToFront(t3); } this.moveToBack(overlay); }
[ "private void removeOverlay() {\n\t if(overlay != null) {\n\t Window window = (Window)SwingUtilities.getAncestorOfClass(Window.class, videoSurface.canvas());\n\t window.removeWindowListener(overlayWindowAdapter);\n\t overlay = null;\n\t }\n\t }", "public void removeOverlay() {\n MimsP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated int64 coalesced_id = 1;
int getCoalescedIdCount();
[ "long getCoalescedId(int index);", "java.util.List<java.lang.Long> getCoalescedIdList();", "private static int generateCircleId(){\n return snextCircleId.incrementAndGet();\n\n }", "private static long getGlobalId() {\n return globalId++;\n }", "@Override\n public long generateNewContractId() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the varsel auto filter history to let user have the opportunity to change
public String getVarSelHistory() { return getPathBySourceType(new Path(Constants.VAR_SELECT, Constants.VAR_SEL_HISTORY), SourceType.LOCAL); }
[ "INexusFilterDescriptor[] getFilterDescriptorHistory();", "SAutoFilter getAutoFilter();", "public static List getActiveStepFilters() {\r\n \t\treturn fgActiveStepFilterList;\r\n \t}", "public List<String> getHistoryList(@Nullable String filter) {\n synchronized (mLock) {\n if (!TextUtils.isE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end synpred1_InternalMASL $ANTLR start synpred2_InternalMASL
public final void synpred2_InternalMASL_fragment() throws RecognitionException { // InternalMASL.g:3045:5: ( ( ( rulestreamStatement ) ) ) // InternalMASL.g:3045:6: ( ( rulestreamStatement ) ) { // InternalMASL.g:3045:6: ( ( rulestreamStatement ) ) // InternalMASL.g:3046:6: ( ...
[ "public final boolean synpred2_InternalMASL() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred2_InternalMASL_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use DisplayUploadAdInfo.newBuilder() to construct.
private DisplayUploadAdInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
[ "private CardUpload(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private UfsInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public ActivityOfferingDisplayInfo(Act...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get members toolbar DOM element.
Element getMembersToolbar(PortalControllerContext portalControllerContext, List<String> indexes) throws PortletException;
[ "public JComponent getToolbarComponent()\n {\n return _box;\n }", "String tinymceToolbarContainer();", "PsiElement getPrivatizerElement();", "C getRegisteredToolBar(ToolbarPosition position);", "public Toolbar getToolbar() {\n return toolbar;\n }", "public org.zkoss.zul.api.Toolbar getTopTo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the list of discounts for the Hotel
public void setDiscounts(ArrayList<Integer> discounts) { this.discounts = discounts; }
[ "public void fillDiscountList() \n {\n \tString[] SDFValues = {\"ColdDrink\", \"ColdDrink\",\"ColdDrink\"};\n \tDiscount SuperDuperFriends = new Discount(\"Super duper friends\", \"choose six cold drinks for this discount\",SDFValues );\n \t\n \tString[] BFValues = {\"Meal\", \"Meal\", \"Meal\", \"Me...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
to reset all we had to do was reset green to 0 and the frame counter to 0
public void resetState() { green = 0; frameCounter = 0; }
[ "void resetFrameCounter() {\n frameCounter = 0;\n }", "protected void resetHelpers()\r\n \t{\t\t\t\r\n \t\tif((framePixels == null) || (framePixels.getWidth() != width) || (framePixels.getHeight() != height))\r\n \t\t\tframePixels = new Sprite(_pixels, 0, 0, width, height);\r\n \t\tframePixels.setRegion...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
idList > ',' 'id' idList | EPSILON
private boolean idList() { if (!skipErrors(NonTerminal.idList)) return false; if (firstSetContains(TokenType.COMMA)) { write("idList -> ',' 'id' idList"); if (match(TokenType.COMMA) & match(TokenType.ID) & idList()) { mergeNode(2); return true; } else { return false; } } else if (foll...
[ "private void parseIdList(ParseTree p) throws ParseException {\r\n\t\tif (t.getToken() != 32) { // id\r\n\t\t\tthrow new ParseException(\"Expecting an identifier at \"\r\n\t\t\t\t\t+ t.getTokenName(), 0);\r\n\t\t}\r\n\t\tp.setNT(5); // id list\r\n\t\tp.createBranch(1); // id\r\n\t\tp.goDown(1);\r\n\t\tp.setNT(18); ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Based on the keys pressed (ctrl, shft), perform the correct set operation for selected entities.
public void setOperation(Set<String> sel) { RenderContext myrc = (RenderContext) rc; if (myrc == null) return; Set<String> new_sel = new HashSet<String>(), old_sel; if (last_shft_down && last_ctrl_down) { old_sel = myrc.filterEntities(getRTParent().getSelectedEntities()); ...
[ "public void applyInputs(){\n\t\t\n\t\tCopyOnWriteArrayList<KeyEvent> temp = typed_keys;\n\t\ttyped_keys = new CopyOnWriteArrayList<KeyEvent>();\n\t\t\n\t\t//going through all key events\n\t\tfor(KeyEvent ke : temp){\n\t\t\tchar c = ke.getKeyChar();\n\t\t\t\n\t\t\tif(' ' <= c && c <= '~'){\n\t\t\t\t//if c is an al...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Divides this tuple's x value by v.
public final Tuple4i divX(int v) { this.values[roTrick + 0] /= v; this.isDirty[0] = true; return (this); }
[ "public final Tuple3i divX(int v) {\n\t\tthis.values[roTrick + 0] /= v;\n\n\t\tthis.isDirty[0] = true;\n\n\t\treturn (this);\n\t}", "public int divide(int v){\n\t\treturn set(get()/v);\n\t}", "public final Tuple4i divY(int v) {\n\t\tthis.values[roTrick + 1] /= v;\n\n\t\tthis.isDirty[0] = true;\n\n\t\treturn (th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__RadarChart__Group_6__2" $ANTLR start "rule__RadarChart__Group_6__2__Impl" InternalMyDsl.g:8333:1: rule__RadarChart__Group_6__2__Impl : ( ( rule__RadarChart__LegendPositionAssignment_6_2 ) ) ;
public final void rule__RadarChart__Group_6__2__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMyDsl.g:8337:1: ( ( ( rule__RadarChart__LegendPositionAssignment_6_2 ) ) ) // InternalMyDsl.g:8338:1: ( ( rule__RadarChart__LegendPo...
[ "public final void rule__LineChart__Group_6__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:5205:1: ( ( ( rule__LineChart__LegendPositionAssignment_6_2 ) ) )\n // InternalMyDsl.g:5206:1: ( ( rule__LineChar...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
if there is a noninterruptible step in the queue, process it (they are privileged compared to interruptible steps)
private ISuspendableSchedulableProcess currentStep() { if (!processQ_NonInterruptable.isEmpty()) { return processQ_NonInterruptable.peek(); } else { return processQ_Interruptable.peek(); } }
[ "void executionSuspended(RunnableQueue rq);", "@Override\n\t\tpublic void executionSuspended(RunnableQueue rq) {\n\t\t}", "void queueShrunk();", "void processBlocked(IProcess p, ICPU cpu, int burst_given);", "private void preempt() {\r\n\t\tswitch(cpu.getJob().getCurrentQueue()) {\r\n\t\tcase 1:\r\n\t\t\tcp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finds the Primitive Type having the specified name.
public final PrimitiveType findPrimitiveType(String name) { for (int i = 0; i < primitiveTypes.size(); i++) { PrimitiveType a = (PrimitiveType)(primitiveTypes.elementAt(i)); if (a.getName().equals(name)) return a; } return null; }
[ "TypeName lookupPrimitiveType(String name);", "public static PrimitiveTypes getByName(String name) {\r\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\r\n\t\t\tPrimitiveTypes result = VALUES_ARRAY[i];\r\n\t\t\tif (result.getName().equals(name)) {\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn nu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get an existing Hadoop DistributedFileSystem instance. If no, create a new one.
public static FileSystem get() throws IOException { Configuration hdfsConf = HadoopHelper.getDefaultConf(); return FileSystem.get(hdfsConf); }
[ "public FileSystem getFileSystem(){\n System.setProperty(Constant.HADOOP_USER_NAME, \"hdfs\");\n Configuration conf = new Configuration();\n FileSystem fs = null;\n try {\n fs = FileSystem.get(conf);\n } catch (IOException e) {\n e.printStackTrace();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return true: add a current TVchannel into FavoriteList, return false: remove one or didn't get current channel
public boolean isSetCurrentChannelFavorite() { TVChannel mTVChannel = mTvChannelSelector.getCurrentChannel(); return isSetChannelFavorite(mTVChannel); }
[ "private void addChannelToFavorites(String channel) {\r\n channel = prepareChannel(channel);\r\n if (channel != null) {\r\n settings.setAdd(FAVORITES_SETTING, channel);\r\n }\r\n }", "private void addToFavorite() {\n\n ArrayList<String> favorite;\n String text = tv...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method can be used to execute solr search queries with filters
@Test public void testQueryFilterExecutionSolr() throws IOException, KgException { SolrHandler solrHandler = new SolrHandler(solrUrl); List<KgSolrResultDocument> resuts = solrHandler.executeQuery("nameEn:\"Germany\"", Arrays.asList("type:\"http://dbpedia.org/ontology/Country\"")); assertNotNull("Got ...
[ "QueryResponse query(SolrParams solrParams) throws SolrServerException;", "List<Object[]> performSearch(String query, List<String> filters);", "void executeSearch(String query);", "public void search() {\n try {\n for(int i = 0; i < this.queries.size(); i++){\n search(i);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new lower case operand.
public LowerCaseOperand(DynamicOperand operand) { super(); this.operand = operand; }
[ "public String getLowercaseFunction() {\n \t\treturn \"lower\";\n \t}", "private void toLower() {\n System.out.print(\"ToLower(\");\n text.print();\n System.out.print(\")\");\n }", "public void makeLowerCase () {\n tags = new StringBuilder (tags.toString().toLowerCase());\n }", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The onActionLocationComboBox method contains the actions to be taken when the user selects a location from the combo box. This method sets up the table view with only the appointments at the selected locatin.
@FXML void onActionLocationComboBox(ActionEvent event) { ObservableList<Reports> allReports = convertAppToReport(); FilteredList<Reports> reportsForTable = new FilteredList<>(allReports, i -> i.getLocation().equals(locationComboBox.getSelectionModel().getSelectedItem())); reportTableView.set...
[ "public void handleAllAppointments(ActionEvent event) {\n AppointmentsMenuDailyView.setSelected(false);\n AppointmentsMenuWeeklyView.setSelected(false);\n AppointmentsMenuMonthlyView.setSelected(false);\n viewSelection = 0;\n try {\n AppointmentsTableView.setItems(Sched...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a Account.clanMember table reference
public ClanMember() { this("clanMember", null); }
[ "Member createMember();", "public ClanMember(java.lang.String alias) {\r\n\t\tthis(alias, mineplex.database.tables.ClanMember.clanMember);\r\n\t}", "public static MembershipAccount getMemberAccountFromTableMemberAccount(TableMemberAccount tableMemberAccount){\n MembershipAccount membershipAccount = new M...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a green color "Server" string
public String getName() { return ChatColor.GREEN + "Server" + ChatColor.RESET; }
[ "private String getServerDetails() {\n String sServerLine = \"Server: Ramon's Killer \";\n String sSocketType = (bIsSecure ? \"(SECURE)\" : \"(unsecure)\");\n sServerLine = sServerLine + sSocketType + \" Server\";\n return sServerLine;\n }", "private void printServerInformation() {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the text box control associated with the given index
public AutomationTextBox getTextBox(int index) { return new AutomationTextBox(this.getControlByControlType(index, ControlType.Text), this.automation); }
[ "public Control getControl(int index) {\n\t\tif (index < 0 || index >= controls.size())\n\t\t\treturn null;\n\t\treturn controls.get(index);\n\t}", "public Text getByIndex(int index){\r\n\t\tif (index >=0 && index < thisDialog.size()){\r\n\t\t\treturn thisDialog.get(index);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
List of bindings to be included in the generated metadata for Web Single SignOn. Ordering of bindings affects inclusion in the generated metadata. Supported values are: "post" (or "urn:oasis:names:tc:SAML:2.0:bindings:HTTPPOST"). The following bindings are included by default: "post"
public void setBindingsSSO(Collection<String> bindingsSSO) { this.bindingsSSO = Objects.requireNonNullElse(bindingsSSO, Collections.emptyList()); }
[ "InterceptorConfigurator addBindings(Set<Annotation> bindings);", "public void setBindingsHoKSSO(Collection<String> bindingsHoKSSO) {\n this.bindingsHoKSSO = Objects.requireNonNullElse(bindingsHoKSSO, Collections.emptyList());\n }", "Map<String, Object> listBindings();", "public java.util.List<com.g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new CaptchaSolver instance.
public CaptchaSolver() { // use builtin resources this(CaptchaSolver.class.getResource("/tessdata").getPath()); }
[ "public CaptchaSolver(String tessdataPath) {\n tess = new TessBaseAPI();\n\n // Initialize tesseract-ocr with English, without specifying tessdata path\n if (tess.Init(tessdataPath, \"eng\") != 0) {\n throw new IllegalStateException(\"Could not initialize tesseract.\");\n }\n }", "public Captcha...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ The test observes the source on multiple threads. The source at some point starts removal of the previously added elements. A race conditions imitated, when removal goes on while some threads already took the removed values, some did not took all of the removed values (and hence should not see all the removed ones), ...
@Test public void testReplayRemoveSubjectConcurrentObservations() throws InterruptedException { final ReplayRemoveSubject<Long> replay = ReplayRemoveSubject.create(); final int THREAD_COUNT = 20; final int START_SOURCE_AFTER_THREADS = 3; final int THREADS_TO_RECEIVE_ALL_BEFO...
[ "@Test\n public void testRemoval() {\n HashSet<Integer> endSet = new HashSet<>();\n endSet.add(1);\n endSet.add(2);\n\n // start.removeAll(end) -> deleted elements\n startSet.removeAll(endSet);\n\n HashSet<Integer> expectedResultSet = new HashSet<>();\n expectedRe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Takes a list of Bytes as argument and returns an run length encoded list. The technique used is a slightly improved version of the usual run length encoding: It consists of keeping the bytes how they are if they don't occur more than twice in a row. Otherwise a negative number is added in front of the compressed byte. ...
public static List<Byte> encode(List<Byte> l) { List<Byte> output = new ArrayList<>(); byte lastByte = 0; int ocount = 0; for (Byte b : l) { ArgumentChecker.requireNonNegative(b); /* * since we can only use negative byte values as indicator...
[ "public static List<Byte> encode(List<Byte> bytes) {\n int counter = 0;\n byte lastB = 0;\n List<Byte> output = new ArrayList<>();\n for (Byte b : bytes) {\n if (!(lastB == b && ++counter < 130)) {\n if (counter < 3)\n output.addAll(Collection...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ensure the correct container is being used.
void checkContainer(Container target) { if (this.target != target) { throw new AWTError("Layout can't be shared"); } }
[ "public void checkContainer() {\n // http://stackoverflow.com/questions/2976884/detect-if-running-in-servlet-container-or-standalone\n try {\n new InitialContext().lookup(\"java:comp/env\");\n log.info(\"Running inside servlet container. Explicit server creation skipped\");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete all stations from the database;
public void deleteAllStations() { database.delete(Sofbus24SQLite.TABLE_SOF_STAT, null, null); }
[ "@Query(\"DELETE FROM train_stations\")\n\tvoid deleteAll();", "@Test\n public void deleteAllUsesStationDaoToRemoveAllStations()\n {\n StationDao mockStationDao = mock(StationDao.class);\n LundergroundFacade facade = new LundergroundFacade();\n facade.setStationDao(mockStationDao);\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
////////////////////////////////////// end of animation related code/////////////// Use for on/off camera light
private void toggle_light() { try { if (!light_on) { lightButton.setBackgroundResource(R.drawable.light_selected); if (handler != null) { handler.quitSynchronously(); handler = null; } // CameraManager.get().closeDriver(); getCameraManager().closeDriver(); initCamera(surfaceHolder)...
[ "public void toggleCameraMode() {\n if (getValue(\"camMode\").getDouble(RobotMap.defaultLimeLight) == RobotMap.ll_vision) {\n setLedMode(RobotMap.ll_off);\n setCameraMode(RobotMap.ll_driver);\n rings.turnOff();\n } else{\n setCameraMode(RobotMap.ll_vision);\n setLedMode(RobotMap.ll_of...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Utility method to determine if a part has been superceded
private boolean isPartSuperceded(PartResolutionInventoryBO aResult) { String newPartNumber = aResult.getAltCtlgPart(); return (newPartNumber != null && newPartNumber.trim().length() > 0); }
[ "boolean hasHasPart();", "boolean isPartCopied();", "boolean hasIsPartOf();", "public boolean isSoftlyInherited() {\r\n\treturn bgclip.equals(inherit);\r\n }", "public boolean isInherited();", "public boolean hasCompletePartition() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "OpenCurlyBracket" $ANTLR start "CloseCurlyBracket"
public final void mCloseCurlyBracket() throws RecognitionException { try { int _type = CloseCurlyBracket; int _channel = DEFAULT_TOKEN_CHANNEL; // /Users/sidharth/Documents/code/phpparser/grammar/Php.g:66:19: ( '}' ) // /Users/sidharth/Documents/code/phpparser/gra...
[ "public final void mOpenCurlyBracket() throws RecognitionException {\n try {\n int _type = OpenCurlyBracket;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/sidharth/Documents/code/phpparser/grammar/Php.g:65:18: ( '{' )\n // /Users/sidharth/Documents/code/phppa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Integer direction represents the direction being checked; Starting at 0=north and proceeding clockwise. Its connected on every side just return true
public boolean isConnected(int direction){ return (true); }
[ "private int testDirection(final DirectedEdge startEdge,\n\t\tfinal int direction) {\n\n\t DirectedEdge currentDirectedEdge = startEdge;\n\t DirectedEdge nextDirectedEdge = null;\n\n\t int finalDirection = direction;\n\n\t while (!edgesAreEqual((SplitEdge) startEdge.getEdge(),\n\t\t nextDirectedEdge)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests getting the weight of the strand.
@Test public void testGetWeight() { assertEquals(strand.getWeight(), 2); strand.setWeight(4); assertEquals(strand.getWeight(), 4); }
[ "public void testGetWeight()\n {\n assertEquals(2, item.getWeight(), 0.01);\n }", "@Test\n public void testGetWeights() {\n System.out.println(\"getWeights\");\n List<Double> input = new ArrayList<>();\n int i;\n for(i = 0; i < 8; i++) \n if(i%2>0) input.add(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the objective operation.
public Objective objectiveOperation() { return objectiveOperation; }
[ "public Variable getObjective() {\r\n\t\treturn objective;\r\n\t}", "Objective getObjective();", "public String getObjective() {\r\n\t\treturn objective;\r\n\t}", "@Matlab\n \tpublic double[] getObjectiveFunction()\n \t{\n \t\treturn _objectiveFunction;\n \t}", "public double getObjectiveValue() {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method will populate the EquationConfigurationPropertiesBean bean; using the predefined data in GPX4 table.
public synchronized void loadEquationConfigurationPropertiesBean() { // if the bean has already been initialised; this method will not be executed. if (equationPropertiesBean.isInitialised()) { return; } DaoFactory daoFactory = new DaoFactory(); IGPX1RecordDaoImp dao = daoFactory.getGPX1DaoIMP(new GPX1...
[ "public void buildProperties() {\n\t\t//Basic and Shared Datasource properties.\n\t\tproperties.clear();\n\t\tproperties.putIfAbsent(\"Specific Binned Labels Names\", \"stimulus_ID\");\n\t\tproperties.putIfAbsent(\"Num CV Splits\", 20);\n\t\tproperties.putIfAbsent(\"Create Simulataneously Recorded Populations\", fa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unasserts the given assertion.
void unassertAssertion(CycAssertion assertion, boolean bookkeeping, boolean transcript) throws CycConnectionException, CycApiException;
[ "void unassertMatchingAssertionsWithoutTranscript(Fort predicate, Object arg1, CycObject mt)\n throws CycConnectionException, CycApiException;", "void unassertGaf(FormulaSentence gaf, CycObject mt) \n throws CycConnectionException, CycApiException;", "protected void throwAssertion() {\n\t\tthi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unsubscribe the listener from receiving notifications when events of the specified type are published.
<T extends Fabric3Event> void unsubscribe(Class<T> type, Fabric3EventListener<T> listener);
[ "void unsubscribeAll(SubscriptionType type);", "public void removeListenerForType(GrillEventListener listener, Class<? extends GrillEvent> eventType);", "@Override\n\tpublic synchronized void removeAll(String type) {\n\t\teventList.removeIf(event -> event.type().equals(type));\n\t}", "public final void unregi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to determine the Weekday for a given ordinal.
public static Weekday valueOfOrdinal( int ordinal ) { if ( ordinal < 0 || ordinal >= Weekday.values().length ) { throw new IndexOutOfBoundsException(); } return Weekday.values()[ ordinal ]; }
[ "public final static int dayOfWeek(int ordinal)\n {\n // modulus in Java is \"broken\" for negative numbers\n // so we adjust to make the dividend postive.\n // By \"broken\" I mean the official rules for what\n // is supposed to happen for negative dividends\n // won't give the desire...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
implementation of fh(String, int, String)
public boolean fh(java.lang.String $param_String_1, int $param_int_2, java.lang.String $param_String_3) throws java.rmi.RemoteException { try { Object $result = ref.invoke(this, $method_fh_7, new java.lang.Object[] {$param_String_1, new java.lang.Integer($param_int_2), $param_String_3}, -6054834294597473936L...
[ "private int hash(String str, int h){\n return hashFunctions[h].apply(str);\n }", "private static synchronized boolean isOpenAfsLfe(String thisLine) throws IcofException {\n\n String funcName = \"isOpenAfsLfe(String)\";\n// System.out.println(\"thisLine: \" + thisLine);\n\n // The l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column FJB_BMK.HEIGHTZY
public void setHeightzy(String heightzy) { this.heightzy = heightzy; }
[ "public void setHeight(int value) { height = value; }", "public void setHeight(int value) {\n this.height = value;\n }", "@DISPID(5) //= 0x5. The runtime will prefer the VTID if present\n @VTID(14)\n void setHeight(\n int prop);", "public void setHeight(int newHeight) {\n roomHeight = newHeight;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests that archiveDepartingVehicles throws an exception when it tries to forcibly remove a small car that has already left the carpark.
@Test(expected=Exception.class) public void testSmallCarArchiveDepartingVehiclesNotParkedForced() throws VehicleException, SimulationException { cp.parkVehicle(sc, ARRIVALTIME, INTENDEDSTAY); sc.exitParkedState(ARRIVALTIME); cp.archiveDepartingVehicles(INTENDEDSTAY, true); }
[ "@Test(expected=Exception.class)\n\tpublic void testCarArchiveDepartingVehiclesNotParkedForced() throws VehicleException, SimulationException {\n\t\tcp.parkVehicle(c, ARRIVALTIME, INTENDEDSTAY);\n\t\tc.exitParkedState(ARRIVALTIME);\n\t\tcp.archiveDepartingVehicles(INTENDEDSTAY, true);\n\t}", "@Test(expected=Excep...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .protobuf.stock_tradeClassify_data tradeClassify_data = 1;
java.util.List<protobuf.Protobuf.stock_tradeClassify_data> getTradeClassifyDataList();
[ "protobuf.Protobuf.stock_tradeClassify_data getTradeClassifyData(int index);", "java.util.List<? extends protobuf.Protobuf.stock_tradeClassify_dataOrBuilder> \n getTradeClassifyDataOrBuilderList();", "protobuf.Protobuf.stock_tradeClassify_dataOrBuilder getTradeClassifyDataOrBuilder(\n int index);"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.protocol.Fence.Shape.Round round = 1;
protocol.Message.Fence.Shape.Round getRound();
[ "protocol.Message.Fence.Shape.RoundOrBuilder getRoundOrBuilder();", "protocol.Message.Fence.Shape getFence();", "protocol.Message.Fence.Shape getShape();", "protocol.Message.Fence.ShapeOrBuilder getFenceOrBuilder();", "public protocol.Message.Fence.Shape.Round getRound() {\n if (shapeCase_ == 1) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determines the lists of common and union fields for concrete union entity type.
private static Pair<List<Field>, List<Field>> commonAndUnion(final Class<? extends AbstractUnionEntity> unionClass) { final List<Field> unionProperties = AbstractUnionEntity.unionProperties(unionClass); final Class<? extends AbstractEntity> concreteUnionClass = (Class<? extends AbstractEntity>) unionPro...
[ "java.util.List<? extends org.zenoss.zing.proto.model.TypedEntityRecord.FieldOrBuilder> \n getFieldsOrBuilderList();", "public NodeUnion<? extends TypeParameterListNode> getUnionForTypeParameters();", "java.util.List<org.zenoss.zing.proto.model.TypedEntityRecord.Field> \n getFieldsList();", "private...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Converts a directory and its subdirectories to modal logical thf problems. Output is mapped to a similar subdirectory structure
public static void convertModalMultipleSemanticsOnMultipleDirectoriesTraverseDirectory(Path inPath, String oPath, boolean dotin, boolean dotout, String dotBin, String[] semantics, TransformationParameter... params){ if (Files.isDirectory(inPath)){ log.info("Input is a directory " + inPath.toString()...
[ "public static void convertModalMultipleSemanticsTraverseDirectory(Path inPath, String oPath, boolean dotin, boolean dotout, String dotBin, String[] semantics, TransformationParameter... params) {\n if (Files.isDirectory(inPath)){\n log.info(\"Input is a directory \" + inPath.toString());\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a copy of this serializer with the short types flag set.
public JodaBeanSer withShortTypes(boolean shortTypes) { return new JodaBeanSer(indent, newLine, converter, iteratorFactory, shortTypes, deserializers, includeDerived); }
[ "public boolean isShortTypes() {\n return shortTypes;\n }", "private ShortType() {\n super(TypeKind.SHORT);\n }", "default SmallShortBuffer asShortBuffer() {\n\t\treturn new SmallShortBuffer(duplicate());\n\t}", "public short toShort()\n {\n return (Short) toClass(Short.class);\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds an attestation to this group. When possible, the attestation will be aggregated with others during iteration. Ignores attestations with no new, unseen aggregation bits.
public boolean add(final ValidateableAttestation attestation) { if (seenAggregationBits.isSuperSetOf(attestation.getAttestation().getAggregation_bits())) { // We've already seen these aggregation bits return false; } return attestationsByValidatorCount .computeIfAbsent( attes...
[ "public org.hl7.fhir.CompositionAttester addNewAttester()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.CompositionAttester target = null;\n target = (org.hl7.fhir.CompositionAttester)get_store().add_element_user(ATTESTER$18);\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the content of the chunk.
public String getChunkContent() { return chunkContent; }
[ "public String getContent () {\n if (!hasContent())\n downloadSafely ();\n return content;\n }", "public T getContent() {\n return content;\n }", "public String getContent() {\n return this.content;\n }", "public String getContent() throws IOException {\r\n\t\tl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to navigate to third section
public void navigateThirdSection() { scrollToElement(VoicelabConst.title3); }
[ "public void navigateFourthSection() {\n\t\tscrollToElement(VoicelabConst.title4);\n\t}", "void goToSection(String sectionName);", "public void navigateSixthSection() {\n\t\tscrollToElement(VoicelabConst.title6);\n\t}", "public void navigateSecondSection() {\n\t\tscrollToElement(VoicelabConst.title2);\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Function: Check if two bytes are gray code. Solution: Use a & (a 1) == 0 to check if a has only one 1 in binary presentation.
public boolean checkGrayCodeClear(byte b1, byte b2) { if (b1 == b2) { return false; } byte b3 = (byte) (b1 ^ b2); return (byte) (b3 & (b3 - 1)) == 0; }
[ "boolean testGrayCode(Tester t) {\n\t\treturn\n\t\tt.checkExpect(s.grayCode(1), this.arrayToList(new int[] {0, 1})) &&\n\t\tt.checkExpect(s.grayCode(2), this.arrayToList(new int[] {0, 1, 3, 2})) &&\n\t\tt.checkExpect(s.grayCode(3), this.arrayToList(new int[] {0, 1, 3, 2, 6, 7, 5, 4}));\n\t\t\n\t}", "public static...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the number of block pointers.
public int getNumBlockPointers() { return blockPointerTable.size() - 1; }
[ "public int getBlockNumsCount() {\n return blockNums_.size();\n }", "public long getNumBlocks() {\n return this.numOfBlocks;\n }", "public int getTotalBlocks()\n\t{\n\t\treturn blockCnt;\n\t}", "public int getNumberOfBlocks();", "abstract public int getNumberOfBlocks();", "int numOfBlocks() {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determines if the columns in a tableau are ordered from lowest to highest
public boolean colOrd(){ for(LinkedList<Integer> l: this.tab){ if(!isOrdered(l)){ return false; } } return true; }
[ "public boolean rowOrd(){\r\n\tfor(int j=0;j<this.rowNum();j++){\r\n\t\tif(!(isOrdered(this.row(j)))){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}\r\n\treturn true;\r\n}", "protected abstract boolean isDefaultAscending(String sortColumn);", "public boolean isSorted(Table t){\n\t\tfor(int i=1; i <t.getSize(); i++) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GET /circles/:id : get the "id" circle.
@GetMapping("/circles/{id}") @Timed public ResponseEntity<Circle> getCircle(@PathVariable Long id) { log.debug("REST request to get Circle : {}", id); Circle circle = circleRepository.findOne(id); return ResponseUtil.wrapOrNotFound(Optional.ofNullable(circle)); }
[ "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<Circle> getCircle(@PathVariable(\"id\") long id) {\n\t\tCircle circle = circleRepository.findOne(id);\n\t\tif (circle == null) {\n\t\t\treturn new ResponseEntity<Circle>(HttpStatus.N...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets if the caller class and method names should be printed for logging
public static void setCallerShown(boolean callerShown) { logger.callerShown = callerShown; }
[ "private static String getLoggerMethodCallerMethodName() {\n\t\treturn Thread.currentThread().getStackTrace()[4].getMethodName(); // caller of the logger method is fifth in the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// stack trace\n\t}", "void setCaller(String caller);", "private static String getLoggerMethodCa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Perform a MD5 checksum on the given object
public static String doMD5asHEX(Object object) { final MD5 md5 = new MD5(object); return md5.asHex(); }
[ "public static byte[] doMD5(Object object) {\n\t\tfinal MD5 md5 = new MD5(object);\n\t\treturn md5.Final();\n\t}", "public String checksumUsingMD5() throws IOException {\n\t\treturn checksumMD5();\n\n\t}", "java.lang.String getMd5();", "protected String digestWithMD5(byte[] contents) {\n return digest(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Constructors / / Creates a new EnumFieldHandler with the given type and FieldHandler.
public EnumFieldHandler(final Class enumType, final FieldHandler handler) { this._handler = handler; this._valueOf = getUnmarshallMethod(enumType); }
[ "public static LocalizedEnumField of(final LocalizedEnumField template) {\n LocalizedEnumFieldImpl instance = new LocalizedEnumFieldImpl();\n instance.setValue(template.getValue());\n return instance;\n }", "public EnumTypeHandler(Class<E> type) {\r\n\r\n if (!type.isEnum()) throw n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
(begin) + (begin+1) + (begin+2)+...+ (end)
public static int sum(int begin, int end) { if (begin == end) return begin; int mid = (begin + end) / 2; return sum(begin, mid) + sum(mid + 1, end); }
[ "public int getAllNaturalNumbersSumFromAtoB(int start, int end) {\n int i = 0;\n int sum = 0;\n {\n for (i = start; i <= end; i++) {\n sum = sum + i;\n }\n\n return sum;\n }\n }", "private static BigInteger findSum(BigInteger start, Bi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getRadio Metodo de acceso que regresa el radio del objeto
public int getRadio() { return this.iRadio; }
[ "com.sagas.meta.model.MetaRadioField getRadioField();", "com.sagas.meta.model.MetaRadioFieldOrBuilder getRadioFieldOrBuilder();", "public interface Radio {\n\tpublic void encendidoApagado();\n\tpublic void cambiarFrecuencia();\n\tpublic void guardarEstacion(double estacion,int boton);\n\tpublic void cambiarEsta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set when this transaction manager should activate the threadbound transaction synchronization support. Default is "always". Note that transaction synchronization isn't supported for multiple concurrent transactions by different transaction managers. Only one transaction manager is allowed to activate it at any time.
public final void setTransactionSynchronization(int transactionSynchronization) { this.transactionSynchronization = transactionSynchronization; }
[ "public void setAutoSynchronizationEnabled(boolean b);", "boolean getSyncWithManagedTransactions();", "public boolean use1PcForAutoCommitTransactions() {\n return use1PcForAutoCommitTransactions;\n }", "public final void setTransactionSynchronizationName(String constantName) {\n setTransactionSynchr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
factory method for an instance of CustomerSetCompanyNameActionBuilder
public static CustomerSetCompanyNameActionBuilder of() { return new CustomerSetCompanyNameActionBuilder(); }
[ "public CustomerSetCompanyNameAction build() {\n return new CustomerSetCompanyNameActionImpl(companyName);\n }", "public static CustomerSetCompanyNameActionBuilder of(final CustomerSetCompanyNameAction template) {\n CustomerSetCompanyNameActionBuilder builder = new CustomerSetCompanyNameActionBui...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
RP3 MuMv Add user TS_MUMV_01(E to E) Verify whether the customer is able to register successfully using MUMV with paperless billing option and verify all the backend details TS_MUMV_05 Verify whether the confirmation email is received when customer is registered successfully using MUMV when paperless billing is selecte...
@Test(groups ={Slingshot,Regression}) public void VerifyPaperlessbillingAddnewUser() { Report.createTestLogHeader("Multi User Multi View", "Verifies whether overlay is displayed when super user cannot delete last Super user"); UserProfile userProfile = new TestDataHelper().getUserProfile("MuMvAddnewuserEnhancemen...
[ "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyPaperbillingAddnewUser() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether the customer is able to register successfully using MUMV without paperless billing option\");\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"Switch...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Container's getter for VehicleDetailsDbVo1.
public ViewObjectImpl getVehicleDetailsDbVo1() { return (ViewObjectImpl) findViewObject("VehicleDetailsDbVo1"); }
[ "public ViewObjectImpl getVehicleDetailsVo1() {\n return (ViewObjectImpl) findViewObject(\"VehicleDetailsVo1\");\n }", "public XtraRCustVehicleDetailsVOImpl getXtraRCustVehicleDetailsVO1() {\n return (XtraRCustVehicleDetailsVOImpl) findViewObject(\"XtraRCustVehicleDetailsVO1\");\n }", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }