query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
public method setExperience will set the experience of the provider | public void setExperience(int experience) {
this.experience = experience;
} | [
"public void setExperience(int experience);",
"public void setExperience(Integer experience) {\n this.experience = experience;\n }",
"public void setExperiences(double experiences);",
"@Override\n\tprotected void addExperience(double time) {\n\t}",
"public void giveExperience(int experience, Playe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the register callback. | public void setRegisterCallback(Callback registerCallback) {
this.registerCallback = registerCallback;
} | [
"@Override\n\tpublic void registerCallbackSubscriberRegistration(ISubscriberRegisterCallback callback)\n\t{\n\t\tm_subscriberRegistrationCallback = callback;\n\t}",
"void setCallback(Object callback);",
"void setCallback(Callback callback);",
"public void register(String system, String function, String callba... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Makes all vertical fences unclickable. Iterates through the array of vertical fences and makes each fence unclickable. Written by Matt. | private void makeVerticalFencesUnclickable() {
for (int i = 0; i < height - 1; i++) {
for (int j = 0; j < width; j++) {
Fences currentFence = verticalFences[i][j];
currentFence.getButton().setClickable(false);
}
}
} | [
"private void makeHorizontalFencesUnclickable() {\n for (int i = 0; i < height; i++) {\n for (int j = 0; j < width - 1; j++) {\n Fences currentFence = horizontalFences[i][j];\n currentFence.getButton().setClickable(false);\n }\n }\n }",
"private void makeUnclickedVerticalFencesClick... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the uri of the user stylesheet. The user stylesheet can be used to override styles. | public void setUserStyleSheetURI(String uri) {
this.getHints().put(ImageTranscoder.KEY_USER_STYLESHEET_URI, uri);
} | [
"public void setStylesheet (String Stylesheet);",
"public static void loadStyleSheet()\n {\n StyleManager.getInstance().addUserAgentStylesheet(ResourceLoader.loadComponent(USER_AGENT_STYLESHEET));\n }",
"public static void loadStyleSheet()\n {\n StyleManager.getInstance().addUserAgentStyl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the effective principal for this operation which may not be the same as the authenticated principal when the session for this context has an explicit authorization id, or this operation was applied with the proxy authorization control. | LdapPrincipal getEffectivePrincipal(); | [
"public Principal getOriginalPrincipal() {\n return principal;\n }",
"protected Principal getPrincipal() {\n return this.getRequest().getUserPrincipal();\n }",
"public Authentication getEffectiveAuthentication();",
"protected User getPrincipalAsUser() {\n if (this.principalAsUser == null)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
message handler for camera thread | @Override
public void handleMessage(Message msg) {
switch (msg.what) {
case MSG_PREVIEW_START:
mThread.startPreview(msg.arg1, msg.arg2);
break;
case MSG_PREVIEW_STOP:
mThread.stopPreview();
synchronized (this) {
notifyAll();
}
Looper.myLooper().quit();
mThread = null;
bre... | [
"public synchronized void requestPreviewFrame(Handler handler, int message) {\n\t\tCamera theCamera = camera;\n\t\tif (theCamera != null && previewing) {\n\t\t\tpreviewCallback.setHandler(handler, message);\n\t\t\ttheCamera.setOneShotPreviewCallback(previewCallback);\n\t\t}\n\t}",
"public void requestPreviewFrame... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the UID of the message if it is present, else the message number. | public String getMessageId() {
return StringUtils.isNotBlank(uid) ? uid : new Integer(messageNumber).toString();
} | [
"public String getMessageId() {\n Field field = obtainField(FieldName.MESSAGE_ID);\n if (field == null)\n return null;\n\n return field.getBody();\n }",
"java.lang.String getMsgID();",
"public int getMessageNumber()\n {\n return _message.getMessageNumber();\n }",
"java.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Original signature : int sd_journal_get_data_threshold(sd_journal, size_t) native declaration : /usr/include/systemd/sdjournal.h:115 | public static int sd_journal_get_data_threshold(Pointer<SystemdJournalLibrary.sd_journal > j, Pointer<SizeT > sz) {
return sd_journal_get_data_threshold(Pointer.getPeer(j), Pointer.getPeer(sz));
} | [
"public static int sd_journal_set_data_threshold(Pointer<SystemdJournalLibrary.sd_journal > j, @Ptr long sz) {\n\t\treturn sd_journal_set_data_threshold(Pointer.getPeer(j), sz);\n\t}",
"public native int getDiskIO();",
"PointerByReference rs2_create_threshold(PointerByReference error);",
"public static int sd... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a square drawing function that takes 2 parameters: The square size, and the fill color, and draws a square of that size and color to the center of the canvas. Create a loop that fills the canvas with rainbow colored squares. | public static void mainDraw(Graphics graphics) {
int squaresSize = 1280;
HashMap<Integer, Color> hashColors = new HashMap<>();
hashColors.put(1, Color.RED);
hashColors.put(2, Color.ORANGE);
hashColors.put(3, Color.YELLOW);
hashColors.put(4, Color.GREEN);
hashColors.put(5, Color.BLUE);
... | [
"void drawSquare() {\r\n\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\tgrey.move(200);\r\n\t\t\tgrey.turn(90);\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}",
"public static void mainDraw(Graphics graphics) {\n\n int rainbowSquaresFillSize = 10;\n rainbowSquaresFill (rainbowSquaresFillSize, graphics);\n\n }",
"static void d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct a new MapPanel using the given type of Globe view and the default LayerNameEnabledMap values. Possible values for globeTypeClass: Earth.class, EarthFlat.class, EllipsoidalGlobe.class, FlatGlobe.class | public MapPanel(Class<? extends Globe> globeTypeClass) {
this(globeTypeClass, new HashMap<String, Boolean>(MapPanel.LayerNameEnabledMap)); // make a copy of the map so it can be mutated.
} | [
"public MapPanel(Class<? extends Globe> globeTypeClass, final Map<String, Boolean> layerNameEnabledMap) {\r\n\t\tsuper(new BorderLayout());\r\n\t\t\r\n\t\t// Curry the layerNameEnabledMap into the layer enabling/disabling process used by the start() method\r\n\t\tlayerEnableCmd = ()->{\r\n\t\t\tSystem.out.println(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculates amount of turned off lights on the game field. | private int countOutedLights() {
int outed = 0;
for (int i = 0; i < mField.length; i++)
for (int j = 0; j < mField.length; j++) {
if (!mField[i][j].isActive()) {
outed++;
}
}
return outed;
} | [
"private void calculateLightsOn() {\n\t\tboolean newLightsOn = this.fluorescentLighting >= this.switchLevel;\n\t\tif (this.fluorescentLightingOn != null && newLightsOn != this.fluorescentLightingOn) {\n\t\t\tnotifyListeners(SpaceStatusChangeListener.EVENT_LIGHTS_ON_OFF, newLightsOn);\n\t\t}\n\t\tthis.fluorescentLig... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
open edit page for member | @RequestMapping(value = "/memberEditPage", method = RequestMethod.GET)
public String memberEditPage(HttpServletRequest request, Model model){
String memberIDParameter = request.getParameter("memberID");
int memberID = Integer.parseInt(memberIDParameter);
List<ZipCodeInfo> zipCodes = service.... | [
"public void editMember(){\n }",
"private void goToEditPage()\n {\n Intent intent = new Intent(getActivity(),EditProfilePage.class);\n getActivity().startActivity(intent);\n }",
"public void editList(View view) {\n\t\tIntent intent = new Intent(this, EditListActivity.class);\n\t\tintent.p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
an new DownloadFile created | void onDownloadFileCreated(DownloadFileInfo downloadFileInfo); | [
"protected abstract File download(Exception previousException) throws Exception;",
"public void\n\tsaveDownload();",
"public void download() {\n \n try {\n \n downloading = true;\n \n input = link.openStream(); \n output = new FileOutputStream... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getDayOfYear method, of class DateTime. | @Test
public void testGetDayOfYear()
{
System.out.println("-----------------------------------------------");
System.out.println("getDayOfYear()");
int result = DateTime.getDayOfYear();
System.out.println("Day of Year : " + result);
} | [
"public static void demoDayOfYear() {\n System.err.println(\"\\n# demoDayOfYear\");\n System.err.println(TimeUtil.dayOfYear( 2000, 12, 31 ));\n System.err.println(TimeUtil.dayOfYear( 1970, 1, 1 ));\n }",
"public int getDayOfYear(){\n\t\treturn dayOfYear;\n\t}",
"@Test\r\n public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Access methods for optional leaf child: "plmnid". Gets the value for child leaf "plmnid". | public YangString getPlmnIdValue() throws JNCException {
return (YangString)getValue("plmn-id");
} | [
"String getChildId();",
"Node getChild(String childID) throws IllegalAccessException;",
"public final int child ()\r\n {\r\n return _value.child();\r\n }",
"public Integer getLeaf() {\n return leaf;\n }",
"public int nodeProp_getPathogenID(int pid) throws EditorException;",
"public St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert the days array into an array of integer Only this array can be shown on the UI | public void buildDaysNumbers() {
daysNumbers = new ArrayList<Integer>();
for (Day d : days) {
daysNumbers.add(d.getNumber());
}
} | [
"public List<Integer> returnDaysNumberList(){\r\n\t\t\tList<WebElement> vacationDaysNrList = getDriver().findElements(By.cssSelector(\"td[class*='header.day.number'] a\"));\r\n\t\t\tList<Integer> vacationDaysStrList = new ArrayList<Integer>();\r\n\t\t\tfor (WebElement i : vacationDaysNrList){\r\n\t\t\t\tvacationDay... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the Map of userdefined properties. | public Map<Object, Object> getUserProperties() {
return userProperties;
} | [
"public Map getProperties();",
"abstract public Map<Object, Object> getProperties();",
"Map<String, String> getProperties();",
"public Map<CompoundName, Object> propertyMap() {\n return properties;\n }",
"java.util.Map<java.lang.String, com.google.datastore.v1.Value> getPropertiesMap();",
"Map<S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleUpdateSubtraction" $ANTLR start "entryRuleUpdateAddition" ../eu.quanticol.caspa.ui/srcgen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:1392:1: entryRuleUpdateAddition : ruleUpdateAddition EOF ; | public final void entryRuleUpdateAddition() throws RecognitionException {
HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens("RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS");
try {
// ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/In... | [
"public final void entryRuleUpdateSubtraction() throws RecognitionException {\n\n \tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_ML_COMMENT\", \"RULE_SL_COMMENT\", \"RULE_WS\");\n\n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
initializes a new table | public void initTable() {
tableHeader = lang.newText(new Coordinates(50, 50), "Elo-Ranking",
"tableHeader", null, headerProps);
table = new String[startScores.length][3];
for (int i = 0; i < table.length; i++) {
table[i] = new String[] { String.valueOf(i + 1),
teamNames[i], String.valueOf... | [
"public Table() {\n this.tableName = \"\";\n this.rows = new HashSet<>();\n this.columnsDefinedOrder = new ArrayList<>();\n }",
"private void initTable() {\n\t\tString[] names = {\"Column 1\", \"Column 2\", \"Column 3\", \"Column 4\", \"Column 5\"};\n\t\tDouble[][] data = new Double[5][5];... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a isPartOf property value. | void addIsPartOf(WrappedIndividual newIsPartOf); | [
"Builder addIsPartOf(String value);",
"boolean hasIsPartOf();",
"Builder addIsPartOf(CreativeWork value);",
"boolean hasHasPart();",
"boolean includePart(int part);",
"Builder addHasPart(String value);",
"void addHasPart(WrappedIndividual newHasPart);",
"Collection<? extends WrappedIndividual> getIsPa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if the project view, or targets indexed during the previous sync, contains one of the targets building the source file. | private static boolean sourceInProjectTargets(
LocationContext context, Collection<TargetKey> targetsBuildingSource) {
if (targetsBuildingSource.stream().anyMatch(context.syncData.getTargetMap()::contains)) {
return true;
}
ImportRoots roots = context.getImportRoots();
return targetsBuilding... | [
"static boolean sourceCoveredByProjectViewTargets(LocationContext context) {\n Collection<TargetKey> targetsBuildingSource =\n SourceToTargetMap.getInstance(context.project)\n .getRulesForSourceFile(new File(context.file.getPath()));\n return !targetsBuildingSource.isEmpty()\n && sour... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column FreeHost_Product_VPS.kefu | public String getKefu() {
return kefu;
} | [
"public String getKeff() {\r\n if (isSetKeff()) {\r\n return getAttribute(MEConstants.keff);\r\n }\r\n return \"\";\r\n }",
"public BigDecimal getUpprice() {\n return upprice;\n }",
"public String getKu6vid() {\r\n return ku6vid;\r\n }",
"public String product() {\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the value of currentCell. | public void setCurrentCell(AntCell currCell) {
this.currentCell = currCell;
if (getDirection() != null) {
getDirection().setCellState(currCell.getColorIndex());
getDirection().computeNextStep();
}
} | [
"public synchronized void setCellValue(GoLCell in_cell)\n {\n cellValue = in_cell.getCellValue();\n }",
"public abstract void setCellValue(int cellValue, int row, int col);",
"void setCell(int row, int column, Value value);",
"public void setCellValue(Object value)\n {\n this.value = va... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of selectedComponent attribute | public Component getSelectedComponent() {
return selectedComponent;
} | [
"public String getSelectedComponentLatexString() {\n if (componentIndexSelected >= 0) {\n return components.get(componentIndexSelected).getLatexString();\n } else {\n return \"\";\n }\n }",
"public String getSelectedAttribute() {\n return getPolymerElement().ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Validate information for a certificate order. | @ServiceMethod(returns = ReturnType.SINGLE)
public Response<Void> validatePurchaseInformationWithResponse(
AppServiceCertificateOrderInner appServiceCertificateOrder, Context context) {
return validatePurchaseInformationWithResponseAsync(appServiceCertificateOrder, context).block();
} | [
"@ServiceMethod(returns = ReturnType.SINGLE)\n public void validatePurchaseInformation(AppServiceCertificateOrderInner appServiceCertificateOrder) {\n validatePurchaseInformationAsync(appServiceCertificateOrder).block();\n }",
"public void validatePatientOrderDetails(PatientOrderDTO patient) {\r\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes given object from taskOut. | public void removeTaskOut(matrixstudio.model.Task value) {
int index = taskOutList.indexOf(value);
if (index >= 0 ) {
removeTaskOut(index);
}
} | [
"public void removeTaskOut(int index) {\n\t\tmatrixstudio.model.Task oldValue = taskOutList.get(index);\n\t\tgetChangeRecorder().recordRemoveObject(this, \"taskOut\", index, oldValue);\n\t\ttaskOutList.remove(index);\n\t}",
"void removeTask(ITask task);",
"Object remove(Object obj) {\n\t\tSystem.out.println(\"T... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column TRSPAYPLANDET_TENTATIVE_TEMP.BLOCKED_AMT_CASH_UNAVAILABLE | public BigDecimal getBLOCKED_AMT_CASH_UNAVAILABLE() {
return BLOCKED_AMT_CASH_UNAVAILABLE;
} | [
"public void setBLOCKED_AMT_CASH_UNAVAILABLE(BigDecimal BLOCKED_AMT_CASH_UNAVAILABLE) {\r\n this.BLOCKED_AMT_CASH_UNAVAILABLE = BLOCKED_AMT_CASH_UNAVAILABLE;\r\n }",
"public BigDecimal getBLOCKED_AMOUNT() {\r\n return BLOCKED_AMOUNT;\r\n }",
"public BigDecimal gettAvail() {\n return t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Appends and returns a new empty "recordedDate" element | org.hl7.fhir.DateTime addNewRecordedDate(); | [
"public void addRecordingDate( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), RECORDINGDATE, value);\r\n\t}",
"org.hl7.fhir.DateTime getRecordedDate();",
"public void addRecordingDate(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), RECORDIN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Elimina registros de waybill por id_travel | int delWayBillByIdTravel(Long id_travel); | [
"public void eliminarTripulante(Long id);",
"public void removeInwDepartCompetence(final String id);",
"int delTravelByIdRoute(Long id_route);",
"public void elimina(DTOAcreditacionGafetes acreGafete) throws Exception;",
"void removeAirport(Long id);",
"void eliminarPresupuesto(Long id);",
"public boole... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Click handler for the bottom nav component User Trends | public void onUserTrendClick(View view) {
Intent intent = new Intent(user_history_activity.this, User_Trends_Activity.class);
startActivity(intent);
} | [
"public void onUserTrendClick(View view) {\n Intent intent = new Intent(Deals_Display.this, User_Trends_Activity.class);\n startActivity(intent);\n }",
"void onUserHeadClick();",
"protected void statisticsOnclick(View view){\n startActivity(new Intent(this, NutritionstatisticsMainActivit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct one Result as the shallow clone of another PLUS a Map of accumulated deltas | public Result(Result another,
Map<String,Object> deltas) {
this((another != null)? another.attributes : (LinkedHashMap)null, deltas);
} | [
"Delta diff( Object original, Object modified );",
"@Override\n public IntegerObjectMapping<R> clone() {\n IntegerObjectMapping<R> clone = new IntegerObjectMapping<R>();\n for (TimeObjectPair tip : mapping) {\n clone.set(tip.time(), tip.value());\n }\n return clone;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a lambda that given an input, it deploys a verticle, does the computation, replies with the response and finally undeploys the verticle.The address is generated according to the following formula: spawned.prefix.n, where prefix is the specified one, and n an internal counter. Examples: spawned.get_client.1, spa... | public <I, O> Lambda<I, O> spawn(final String address,
final Lambda<I, O> lambda,
final DeploymentOptions options
) {
requireNonNull(address);
requireNonNull(options);
requireNonNull(la... | [
"public <I, O> Lambdac<I, O> spawn(final String address,\n final Lambdac<I, O> lambda,\n final DeploymentOptions options\n ) {\n\n requireNonNull(address);\n requireNonNull(options);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table trade_point | @Update({
"update trade_point",
"set exchange = #{exchange,jdbcType=VARCHAR},",
"symbol = #{symbol,jdbcType=VARCHAR},",
"base = #{base,jdbcType=VARCHAR},",
"period = #{period,jdbcType=VARCHAR},",
"quant_type = #{quantType,jdbcType=VARCHAR},",
"price = #{... | [
"@Select({\n \"select\",\n \"id, exchange, symbol, base, period, quant_type, price, status, kline_time, time\",\n \"from trade_point\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is used to initialize the panel on the frame | public void initializePanel ()
{
// contentPane - Instance of Jpanel
contentPane = new JPanel ();
contentPane.setBorder(new EmptyBorder ( 5, 5, 5, 5) );
setContentPane ( contentPane );
contentPane.setLayout ( null );
} | [
"public void init() {\n initPanels();\n initFrame();\n }",
"public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLab... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Method Name : parseXMLResult Input Parameters: String respFile,ProcureLineItem pli,ApprovalRequest ar,BaseVector lineItems,Approvable lic Return Type: None This method Parses the Response file generated by vertex webservice. | private void parseXMLResult(String respFile, ProcureLineItem pli,
ApprovalRequest ar, BaseVector lineItems, Approvable lic)
throws SAXException, ParserConfigurationException, IOException {
Log.customer.debug("After calling getVertexTaxResponse()...: %s",
"CatTaxCustomApprover response file before parsin... | [
"@Override\n\tpublic ArrayList<Annotation> parse(File result_file) throws Exception{\n\t\tArrayList<Annotation> annotations_array=new ArrayList<Annotation>();\n\t\tBufferedReader reader = new BufferedReader(new FileReader(result_file));\n\t\t\n\t\tint idx_region_id=0;\n\t\tint idx_servicesip=3;\n\t\tint idx_id=4;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Before Delete Rules | public void beforeDelete0I17( )
{
} | [
"public void beforeDelete1641( )\n {\n }",
"public void beforeDelete0Q28( )\n {\n }",
"void compareDeletion();",
"@Override\n protected void handleDependenciesBeforeDelete(AcessosPermissaoEntity acessosPermissao) {\n \n }",
"public void deleteTriggered();",
"default void checkLegalDel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the signature method that was used for creating this signature. | public String getSignatureMethod()
{
return m_signatureMethod;
} | [
"MethodSignature getSignature();",
"public String getMethodSignature() {\n return methodSignature;\n }",
"public String getSignature() {\n return jmethod.getSignature();\n }",
"public NativeMethodSignature getMethodSignature();",
"java.lang.String getSignature();",
"int getSignatureTyp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Method to search the path between two synsets | public Pair<Integer, Boolean> findPath(BabelSynset bs1, BabelSynset bs2) throws Exception {
if(bs1.equals(bs2) && !bs1.equals("bn:00031027n")) return new Pair<Integer, Boolean>(0, false);
if(bs1.equals(bs2) && bs1.equals("bn:00031027n")) return new Pair<Integer, Boolean>(0, true);
A_parentsHigh = new ArrayList... | [
"@Override\r\n\tpublic ArrayList<String> getPath(String town1, String town2)\r\n\t{\r\n\t\tTown t = new Town(town1);\r\n\t\tTown t2 = new Town(town2);\r\n\t\t\r\n\t\tArrayList<String> list = graph.shortestPath(t, t2);\r\n\t\treturn list;\r\n\t}",
"@Override\r\n public ArrayList<String> getPath(String town1, St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the java file handle for builder interface file. | private void setBuilderInterfaceJavaFileHandle(File builderInterfaceJavaFileHandle) {
this.builderInterfaceJavaFileHandle = builderInterfaceJavaFileHandle;
} | [
"private void setBuilderClassJavaFileHandle(File builderClassJavaFileHandle) {\n this.builderClassJavaFileHandle = builderClassJavaFileHandle;\n }",
"private File getBuilderInterfaceJavaFileHandle() {\n return builderInterfaceJavaFileHandle;\n }",
"private void setInterfaceJavaFileHandle(Fil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This test verifies that an EPerson cannot be removed if they are the only member of a Workflow Group that has an item present in a workflow with a pooled task. This test verifies this with a claimed task in the first workflow step. This test also verifies that after another user has been added to the respective workflo... | @Test
public void testDeleteUserAfterReplacingUser4() throws Exception {
/*
* This test has the following setup:
* - Step 1: user B
* - Step 2: user C
* - Step 3: user B
*
* This test will perform the following checks:
* - create a workspace ite... | [
"@Test\n public void testDeleteUserWhenOnlyUserInGroup2() throws Exception {\n /*\n * This test has the following setup:\n * - Step 1: user B\n * - Step 2: user C\n * - Step 3: user B\n *\n * This test will perform the following checks:\n * - create ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
SANs present in the certificate. repeated .envoy.data.accesslog.v3.TLSProperties.CertificateProperties.SubjectAltName subject_alt_name = 1; | io.envoyproxy.envoy.data.accesslog.v3.TLSProperties.CertificateProperties.SubjectAltNameOrBuilder getSubjectAltNameOrBuilder(
int index); | [
"java.util.List<io.envoyproxy.envoy.data.accesslog.v3.TLSProperties.CertificateProperties.SubjectAltName> \n getSubjectAltNameList();",
"io.envoyproxy.envoy.data.accesslog.v3.TLSProperties.CertificateProperties.SubjectAltName getSubjectAltName(int index);",
"@java.lang.Override\n public java.util.List... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines if the given BreakAction requests a halt given the file line and optionally a conditional to evaluate.' | boolean shouldBreak(BreakAction a, int fileId, int line)
{
boolean should = a.isEnabled();
ValueExp exp = a.getCondition();
if (should && exp != null && !m_requestHalt) // halt request fires true
{
// evaluate it then update our boolean
try
{
EvaluationResult result = evalExpression(exp, false);
... | [
"boolean isOnBreak ()\n {\n if (status == Status.Break)\n return true;\n else\n return false;\n }",
"public void testConditionalBreakDirective()\n {\n assertEvalEquals(\"1, 2, 3, 4, 5\",\n \"#foreach($i in [1..10])$i#if($i > 4)#break#end, #end\");\n }",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a CSS style class to use for this component. | final public String getStyleClass()
{
return ComponentUtils.resolveString(getProperty(STYLE_CLASS_KEY));
} | [
"public java.lang.String getStyleClass() {\n if (null != this.styleClass) {\n return this.styleClass;\n }\n ValueBinding _vb = getValueBinding(\"styleClass\");\n if (_vb != null) {\n return (java.lang.String) _vb.getValue(getFacesContext());\n } else {\n return null;\n }\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
PostInfoByTimeResponse response = new PostInfoByTimeResponse(); LocalDateTime dateTime = LocalDateTime.now().minusMinutes(50); List> variability = Arrays.asList( new TimePoint(150, dateTime.atZone(ZoneOffset.UTC).toInstant().toEpochMilli()), new TimePoint(160, dateTime.plusMinutes(10).atZone(ZoneOffset.UTC).toInstant()... | @Override
public void getPostStatPage(UUID systemGroupId, UUID systemPostId,SocialNetwork soc, Model model,DurationStat duration, String accessToken) {
Pair<LocalDate, LocalDate> dt = convertDurationToTimes(duration);
PostInfoByTimeResponse response = null;
try{
response = bStatC... | [
"@Override\n protected Void doInBackground(Void... params) {\n String TIMINGS_URL = \"http://192.168.11.2/zenpets/public/fetchThursdayMorningTimings\";\n HttpUrl.Builder builder = HttpUrl.parse(TIMINGS_URL).newBuilder();\n builder.addQueryParameter(\"doctorID\", DOCTOR_ID);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handles Read Request of XML format For Template data | @RequestMapping(method=RequestMethod.POST, value="/templatedetailInfo" , headers = "Accept=application/xml" )
public @ResponseBody String readTemplatedetailXml(@RequestParam(value="isResponseRequired",required=true) Boolean isResponseRequired,@RequestParam(value="storedProcedureName",required=false) String stor... | [
"public TemplateDTO readTemplateUsingLoadFromParam() {\n TemplateDTO inputTemplateDTO = null;\n try {\n Resource resource = commonService.loadResourceUsingLoadFromParam();\n InputStream inputStream = resource.getInputStream();\n\n JAXBContext jaxbContext = JAXBContext.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the model output label of this model output chart order. | public void setModelOutputLabel(String modelOutputLabel); | [
"public void setModelOutputChartOrder(int modelOutputChartOrder);",
"@AutoEscape\n public String getModelOutputLabel();",
"public void setOutputLabels(String[] labels) {\r\n for (int i = 0; i < outputNeurons.size(); i++) {\r\n outputNeurons.get(i).setLabel(labels[i]);\r\n }\r\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the EffDatedRegistry field. | @gw.internal.gosu.parser.ExtendedProperty
public entity.PolicyEffDatedRegistry[] getEffDatedRegistry() {
return (entity.PolicyEffDatedRegistry[])__getInternalInterface().getFieldValue(EFFDATEDREGISTRY_PROP.get());
} | [
"public java.util.Calendar getDRegDate() {\n return DRegDate;\n }",
"public String getRegistryValue() {\n return registryValue;\n }",
"public Date getRegDtm() {\r\n return regDtm;\r\n }",
"public Date getDateRegistered() {\n\t\treturn dateRegistered;\n\t}",
"public Date getDtRe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field wxIcon is set (has been assigned a value) and false otherwise | public boolean isSetWxIcon() {
return this.wxIcon != null;
} | [
"public boolean isSetIcon() {\n return this.icon != null;\n }",
"public boolean isSetIcon() {\n\t\treturn this.icon != null;\n\t}",
"public boolean isSetRealIcon() {\n\t\treturn this.realIcon != null;\n\t}",
"public boolean isSetIconPath() {\n return this.iconPath != null;\n }",
"public boolean isIc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Restricts a double x to an interval [min, max]. | public static final double bound(double xx, double min, double max){
double x = xx;
if(x<min)return min;
if(x>max)return max;
return x;
} | [
"static public double lim(double x,double min,double max) {\r\n\t\t if(x<min) return min;\r\n\t\t if(x>max) return max;\r\n\t\t return x;\r\n\t}",
"public static boolean inRange( double x , double min , double max )\n {\n return ( ( x >= min ) && ( x <= max ) ) ;\n }",
"private double clamp(double ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column external_job.source_url | public String getSourceUrl() {
return sourceUrl;
} | [
"public String getSourceurl() {\n return sourceurl;\n }",
"public String getSourceLink() {\n return sourceLink;\n }",
"public String getUrl() {\n return jdbcUrl;\n }",
"public String getExternalSourceName()\n {\n return externalSourceName;\n }",
"public String getJ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metoda za transferiranje objecta u DataSet | public void TransferFromClass2DB(DataSet ds, Object obj){
TransferCommon('C',ds,obj);
} | [
"public void TransferFromDB2Class(DataSet ds, Object obj){\n TransferCommon('D',ds,obj);\n }",
"public DataSet getDataSet() {\r\n return dataSet;\r\n }",
"public Set<T> dataSet();",
"public DataSet getDataSet() {\n return dataset;\n }",
"public DSDataSet<Q> getDataSet();",
"public Da... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find account by member ,it not found return null . | public Account findAccountByMember(Member member); | [
"public MemberPo findMember(final String id);",
"public CarerAccount getAccountWithUsername(String search){\n\t\tCarerAccount item = null;\n\n\t\tint count = 0;\n for (int i = 0; i < CarerAccounts.size(); ++i) {\n if (CarerAccounts.get(i).getUsername().equals(search)){\n\t\t\t\tcount++;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Two warnings of different line numbers should be inequal. | @Test
public void testEqualsDifferentLineNumber() {
final ScriptExecutionWarning other = new ScriptExecutionWarning(lineNumber + 1, sourceCode);
assertThat(warning).isNotEqualTo(other);
assertThat(other).isNotEqualTo(warning);
} | [
"@Test\n public void testEqualsDifferentSourceCode() {\n final ScriptExecutionWarning other = new ScriptExecutionWarning(lineNumber, StringUtils.reverse(sourceCode));\n assertThat(warning).isNotEqualTo(other);\n assertThat(other).isNotEqualTo(warning);\n }",
"@Test\n public void test... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
//GENEND:|178getter|2| //GENBEGIN:|180getter|0|180preInit Returns an initiliazed instance of lstSincronismos component. | public List getLstSincronismos() {
if (lstSincronismos == null) {//GEN-END:|180-getter|0|180-preInit
// write pre-init user code here
lstSincronismos = new List("Sincronismos", Choice.IMPLICIT);//GEN-BEGIN:|180-getter|1|180-postInit
lstSincronismos.append("Listar Dispositivos... | [
"public ListaPrecios() {\n initComponents();\n listaListaPrecio();\n }",
"public void init() {\r\n\t\tlog.info(\"init()\");\r\n\t\tobjIncidencia = new IncidenciaSie();\r\n\t\tobjObsIncidencia = new ObservacionIncidenciaSie();\r\n\t\tobjCliente = new ClienteSie();\r\n\t\tobjTelefono = new Telefono... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method for updating the log in the gui | public void updateLog(String info){
log = log + info + "\n";
myGui.updateLog(log);
} | [
"private void updateLogView(String log) {\r\n user_log_text.setText(log);\r\n //shifts focus to bottom of log per log update\r\n //mScrollView.scrollTo(0, user_log_text.getBottom());\r\n scrollToBottom();\r\n }",
"public void updateLog(){\n Object rowData[] = new Object[3];\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tells Server to use the given logger | public void setLogger(Logger log){
this.log = log;
} | [
"public void setLogger(Logger logger);",
"public void setLogger(Logger logger) {\n this.logger = logger;\n }",
"public void setLogger(String path){\n log = new Logger(path);\n }",
"void configure(Logger logger);",
"public Log(Logger logger) {\n this.logger = logger;\n }",
"public s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__ENodeTemplateBody__Group_6__0" $ANTLR start "rule__ENodeTemplateBody__Group_6__0__Impl" InternalAADMParser.g:4782:1: rule__ENodeTemplateBody__Group_6__0__Impl : ( Capabilities ) ; | public final void rule__ENodeTemplateBody__Group_6__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalAADMParser.g:4786:1: ( ( Capabilities ) )
// InternalAADMParser.g:4787:1: ( Capabilities )
{
// Inter... | [
"public final void rule__ENodeTemplateBody__Group_6__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:4840:1: ( ( ( rule__ENodeTemplateBody__CapabilitiesAssignment_6_2 ) ) )\n // InternalAADMParser.g:48... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "parse_west_twouse_language_owl2fs_DisjointUnion" $ANTLR start "parse_west_twouse_language_owl2fs_SubObjectPropertyOf" Owl2fs.g:9318:1: parse_west_twouse_language_owl2fs_SubObjectPropertyOf returns [west.twouse.language.owl2fs.SubObjectPropertyOf element = null] : a0= 'SubObjectPropertyOf' a1= '(' ( (a2_0= p... | public final west.twouse.language.owl2fs.SubObjectPropertyOf parse_west_twouse_language_owl2fs_SubObjectPropertyOf() throws RecognitionException {
west.twouse.language.owl2fs.SubObjectPropertyOf element = null;
int parse_west_twouse_language_owl2fs_SubObjectPropertyOf_StartIndex = input.index();
... | [
"public final west.twouse.language.owl2fs.SubObjectPropertyExpression parse_west_twouse_language_owl2fs_SubObjectPropertyExpression() throws RecognitionException {\r\n west.twouse.language.owl2fs.SubObjectPropertyExpression element = null;\r\n int parse_west_twouse_language_owl2fs_SubObjectPropertyEx... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
polar line to P relative to c | protected GeoElement polarLine(String label, GeoPointND P, GeoConicND c) {
AlgoPolarLine algo = new AlgoPolarLine(cons, label, c, P);
return (GeoElement) algo.getLine();
} | [
"protected GeoElementND polarLine(GeoPointND P, GeoConicND c) {\n\t\tAlgoPolarLine algo = new AlgoPolarLine(ec.kernel.getConstruction(),\n\t\t\t\tnull, c, P);\n\t\treturn algo.getLine();\n\t}",
"private void drawPolarLine(Graphics g, int x, int y, int len, double rad, Color c) {\n int x2 = (int) (x + len *... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get Disk type Note: this field may return null, indicating that no valid values can be obtained. | public String getDiskType() {
return this.DiskType;
} | [
"java.lang.String getDiskType();",
"java.lang.String getBootDiskType();",
"java.lang.String getDiskTypeId();",
"com.google.protobuf.ByteString getBootDiskTypeBytes();",
"public java.lang.String getDiskControllerType() {\r\n return diskControllerType;\r\n }",
"@java.lang.Override\n public java... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sync the allowed height of the pinned lane's scroll pane to the lanes actual height. | private void syncPinnedHeight() {
pinnedView.setMinHeight(MIN_PINNED_LANE_HEIGHT);
pinnedView.setMaxHeight(pinnedLane.maxVScrollProperty().get() + 30);
} | [
"public void updateHeight() {\n Rectangle repaintBounds = getBounds();\n parent.getScene().paintImmediately(repaintBounds);\n\n // set new height compute while repainting.\n setBounds(new Rectangle(bounds));\n\n parent.getScene().repaint(repaintBounds);\n setChanged();\n notifyObservers();\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Output a record that failed to resolve. | void failed(Record record) {
mOutput.printFail(simulateNmOutput(record));
} | [
"@Override\n public Collection<IRecord> procErrorRecord(IRecord r)\n {\n return null;\n }",
"private void reportFailure(String message) {\n System.err.println(\"\\nData verification failed:\");\n System.err.println('\\t' + message);\n }",
"public RecordNotFoundException() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method sets the value for the 'Neutral_mass' column | public void setNeutral_mass(Number aNeutral_mass) {
this.iNeutral_mass = aNeutral_mass;
this.iUpdated = true;
} | [
"public void setCalcNeutralPepMass(double value) {\r\n this.calcNeutralPepMass = value;\r\n }",
"public Number getNeutral_mass() {\n\t\treturn this.iNeutral_mass;\n\t}",
"public void setMass(float value) {\n this.mass = value;\n }",
"public void setMass(double value) {\n this.mass = value... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verifies the behavior of the JNDIProviderAdmin.getObjectInstance() method that takes an Attributes object as a parameter. | public void testGetObjectInstanceWithAttributes() throws Exception {
String[] serviceInterfaces = { DirObjectFactory.class.getName(),
TestDirObjectFactory.class.getName() };
ServiceRegistration serviceRegistration =
getContext().registerService(serviceInterfaces,
... | [
"public void testGetObjectInstanceWithAttributesUsingNonReference()\r\n\t\t\tthrows Exception {\r\n\t\t// setup test builder\r\n\t\tfinal ObjectFactoryBuilder builder = new ObjectFactoryBuilder() {\r\n\t\t\tpublic ObjectFactory createObjectFactory(Object refInfo, Hashtable environment) throws NamingException {\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Takes a list and generates a map of the ID and item | @SuppressWarnings("unused")
private static <T extends AbstractApiIdentifiableDTO> Map<Long, T> generateIdMap(List<T> idList) {
Map<Long, T> results = new HashMap<>(idList.size());
for (T idSingle : idList) {
results.put(idSingle.getId(), idSingle);
}
return results;
... | [
"private static <T extends AbstractApiIdentifiableDTO> Map<Long, List<T>> generateIdMapList(List<T> idList) {\n Map<Long, List<T>> results = new HashMap<>();\n\n for (T idSingle : idList) {\n Long sourceId = idSingle.getId();\n if (results.containsKey(sourceId)) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
When using a reference based ideal step calculator, alpha determines how much we value the reference plan vs. new plan. Value should be between 0 and 1 | public double getReferencePlanAlpha()
{
return reference_plan_alpha_;
} | [
"public void setReferencePlanAlpha(double reference_plan_alpha)\n {\n reference_plan_alpha_ = reference_plan_alpha;\n }",
"public void alpha(int alpha);",
"float getAlpha();",
"public static double getAlpha()\n\t{\n\t\treturn alpha;\n\t}",
"public void setAlpha(double alpha) {\r\n\t\tthis.alpha = a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
What tokenizers are used by the underlying collection | public String[] getTokenizerIdList () {
return tokenizerIdList;
} | [
"public Array<String> tokenTypes(){\n\t\tArray<String> lex = new Array<String>();\n\t\tfor( String k:lexeme.keySet() ) \n\t\t\tif( !removable(k) ) lex.add(k);\n\t\treturn lex;\n\t}",
"public abstract Tokenizer getTokenizer();",
"Set<TokenType> tokenTypes();",
"public TokenizerSettings getTokenizerSettings()\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the oleItemOriginalReceivedTotalQuantity attribute. | public KualiInteger getOleItemOriginalReceivedTotalQuantity() {
return new KualiInteger(super.getItemOriginalReceivedTotalQuantity().intValue());
} | [
"public KualiInteger getOleItemReceivedTotalQuantity() {\r\n return new KualiInteger(super.getItemReceivedTotalQuantity().intValue());\r\n }",
"public KualiInteger getOleItemOriginalReceivedTotalParts() {\r\n return new KualiInteger(getItemOriginalReceivedTotalParts().intValue());\r\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ For Ascending order return this.this.id shift.id; / For Descending order do like this | @Override
public int compareTo(@NonNull ShiftItem shift) {
return Integer.valueOf(shift.id) - Integer.valueOf(this.id);
} | [
"public int getShift() {\n\n return shift;\n\n }",
"public int getOrder (){\n return current;\n }",
"Shift getShift();",
"public int getPrimaryKeyOrder();",
"public Shift getShift() {\n return shift;\n }",
"public int getEmployeeShift() {\n return employeeShift;\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a format able to format lengths with their localized unit. | public abstract Format getFormatWithUnit(); | [
"public void formatLength(double length, Formatter formatter) {\n if (mPreferences.getUnitsFormat().equals(Preferences.UNITS_METRIC)) {\n formatter.format(\" %,.1f m\", length);\n } else {\n // imperial units\n formatter.format(\" %,.1f %s\", length * 3.28132739, mCont... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get current time with HHmmss format | public static String time6()
{
return now("HHmmss");
} | [
"public static String getNowTimeHHMM() {\n\t\tSimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:mm\");\n\t\treturn timeFormat.format(new Date());\n\t}",
"public static String getCurrentTimeString() \r\n\t{\r\n\t\treturn\tgetDateFormat(new java.util.Date(),\"HH:mm:ss:SSS\");\r\n\t}",
"public static String ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find where each attribute appears in the database. | private HashMap<String, List<int[]>> findAttributePositions() {
HashMap<String, List<int[]>> seenWhere = new LinkedHashMap<>();
for (int i = 0; i < relations.size(); ++i) {
List<String> attributes = relations.get(i).getAttributes();
for (int j = 0; j < attributes.size(); ++j) {
... | [
"public ArrayList<String> findCommonAttrs(RelationPredicate p){\n\t\t//System.out.println(\"Common in: \" + this + \" and \" + p);\n\t\tArrayList<String> attrs = new ArrayList<String>();\n\t\tfor(int i=0; i<terms.size(); i++){\n\t\t\tTerm t = terms.get(i);\n\t\t\tString var = t.getVar();\n\t\t\tif(var!=null && p.co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for a folder controller with an optional file filter and an optional custom link model for editor. Use this one if you don't wan't to display all files in the file browser or if you want to use a custom link tree model in the editor. | public FolderRunController(VFSContainer rootContainer, boolean displayWebDAVLink, boolean displaySearch, UserRequest ureq, WindowControl wControl,
VFSItemFilter filter, CustomLinkTreeModel customLinkTreeModel, Long courseNodeId) {
super(ureq, wControl);
folderContainer = this.createVelocit... | [
"public FileObserverFilter(FileObserverFilterType aFilterType, IFolder folder) {\n \t\tassert (aFilterType == FileObserverFilterType.FOLDER);\n \t\tsetFilterType(aFilterType);\n \t\tsetFilter(folder);\n \t}",
"public FolderContentModelManager() {\n\t}",
"public FolderBar() {\n this(null, null);\n\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the ROLE value for this InsuranceINS. | public void setROLE(webservice.hospindex.InsuranceINSROLE ROLE) {
this.ROLE = ROLE;
} | [
"public void setRole( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ROLE, value);\r\n\t}",
"public void setRole(java.lang.String value) {\n this.role = value;\n }",
"void setRole(String role);",
"public void setRole(final String value) {\n this.role = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Logs the stack trace for the input Throwable. | public void log(Throwable t); | [
"void printStackTrace(Throwable e);",
"public static void logStackTrace(Exception e){\n\t\tStackTraceElement[] traces = e.getStackTrace();\n\t\tif (null != traces && traces.length > 0){\n\t\t\tlogger.error(e);\n\t\t\tlogger.error(CLASSNAME + \" EXCEPTION THROWN: \" + e.getMessage() + \"\\n\");\n\t\t\tlogger.error... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Top level locks should be used to lock the entire Topology Acquires write lock for the Complete Topology | public static void acquireWriteLock() {
if (log.isDebugEnabled()) {
log.debug("Write lock acquired for Topology");
}
topologyLockHierarchy.getCompleteTopologyLock().acquireWriteLock();
} | [
"void writeLock ();",
"public synchronized void lockWrite() {\n\t}",
"public void lock() {\n //Needs certain order to examine the locks , otherwise leads to deadlock, thus LinkedHashMap.\n LinkedHashSet<ReentrantReadWriteLock> existingLock = getExistingLocks();\n if (existingLock != null &&... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Arguably we should handle the case where just width or just height is set to Target.SIZE_ORIGINAL. Up to and including OMR1, MediaMetadataRetriever defaults to setting the dimensions to the display width and height if they aren't specified (ie getScaledFrameAtTime is not used). Given that this is an optimization only i... | @TargetApi(Build.VERSION_CODES.O_MR1)
@Nullable
private static Bitmap decodeFrame(
MediaMetadataRetriever mediaMetadataRetriever,
long frameTimeMicros,
int frameOption,
int outWidth,
int outHeight) {
if (Build.VERSION.SDK_INT >= VERSION_CODES.O_MR1
&& outWidth != Target.SIZ... | [
"@Test public void inJustDecodeBoundsIfResizing() {\n final Request requiresResize = new Request.Builder(TestUtils.URI_1).resize(20, 15).build();\n final BitmapFactory.Options resizeOptions = createBitmapOptions(requiresResize);\n assertThat(resizeOptions).isNotNull();\n assertThat(resizeOptions.inJustD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Adjust visibility and size to make it appear as though an item is being dragged around and other items are making room for it: If dropping the item would result in it still being in the same place, then make the dragged listitem's size normal, but make the item invisible. Otherwise, if the dragged listitem is still o... | private void expandItem() {
if (mWaveRunnable != null) {
// this is the first dragging, no animation is needed
// if (mLastDragPos == mDragPos && mDragPos == mSrcDragPos) {
if (mDragPos == mSrcDragPos) {
drag = getChildAt(mSrcDragPos - getFirstVisiblePosition()... | [
"public void moveItem ()\n {\n if (mouseIsPressed && item != null)\n {\n int originalItemX = originalCoords [itemsArray.indexOf (item)][0];\n int originalItemY = originalCoords [itemsArray.indexOf (item)][1];\n \n //sets new location of JLabel based on where ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for pass. | public void setPass(String aPass) {
pass = aPass;
} | [
"public void setPass(int pass) {\n this.pass = pass;\n }",
"public void setPass(boolean pass) {\r\n this.pass = pass;\r\n\r\n setChanged();\r\n notifyObservers(this);\r\n }",
"public static void SetPass(String pass) \n\t{\n\t\tcurrentactive.upassword=pass;\n\t}",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
//GENEND:|39getter|2| //GENBEGIN:|44getter|0|44preInit Returns an initialized instance of okCommand3 component. | public Command getOkCommand3() {
if (okCommand3 == null) {//GEN-END:|44-getter|0|44-preInit
// write pre-init user code here
okCommand3 = new Command("Ok", Command.OK, 0);//GEN-LINE:|44-getter|1|44-postInit
// write post-init user code here
}//GEN-BEGIN:|44-getter|2|
... | [
"public Command getOkCommand1 () {\nif (okCommand1 == null) {//GEN-END:|50-getter|0|50-preInit\n // write pre-init user code here\nokCommand1 = new Command (\"Ok\", Command.OK, 0);//GEN-LINE:|50-getter|1|50-postInit\n // write post-init user code here\n}//GEN-BEGIN:|50-getter|2|\nreturn okCommand1;\n}",
"public C... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleXBlockExpression" $ANTLR start "ruleXBlockExpression" ../org.xtext.mongobeans.ui/srcgen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1308:1: ruleXBlockExpression : ( ( rule__XBlockExpression__Group__0 ) ) ; | public final void ruleXBlockExpression() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1312:2: ( ( ( rule__XBlockExpression__Group__0 ) ) )
... | [
"public final void ruleXBlockExpression() 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:1396:2: ( ( ( rule__XBlockExpression... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the sum of included Liquids in liters. | @Override
public double getVolume() {
return liquids
.stream()
.mapToDouble(Liquid::getVolume)
.sum();
} | [
"public double liq() {\n\t\tdouble amt = 0;\n\t\t\n\t\tfor( Strike strike : m_strikes) {\n\t\t\tamt += strike.liq();\n\t\t}\n\t\t\n\t\treturn amt;\n\t}",
"public long sum() {\n\t\tlong result = 0;\n\t\tfor (int i=0; i<numElements; i++) {\n\t\t\tresult += theElements[i];\n\t\t}\n\t\treturn result;\n\t}",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the score panel. | public void setScorePanel(ScorePanel scorePanel) {
this.scorePanel = scorePanel;
} | [
"public ScorePanel() {\n initComponents();\n init();\n }",
"private void initialScore(){\n score.setScore(Panels.getScore());\n score.setTranslateX(350);\n score.setTranslateY(35);\n root.getChildren().add(score);\n }",
"public void setCurrentScore(int score) {\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The product type of this ad. See comments on the enum for details. .google.ads.googleads.v14.enums.DisplayUploadProductTypeEnum.DisplayUploadProductType display_upload_product_type = 1; | @java.lang.Override public int getDisplayUploadProductTypeValue() {
return displayUploadProductType_;
} | [
"public Builder setDisplayUploadProductType(com.google.ads.googleads.v14.enums.DisplayUploadProductTypeEnum.DisplayUploadProductType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n displayUploadProductType_ = value.getNumber();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Makes a marker at point. | private MarkerOptions makeMarkerAt( LatLng point ) {
return new MarkerOptions().flat( true ).draggable( true ).position( point );
} | [
"@Override\n public void drawMarker(@NonNull Point point) {\n if (map != null) {\n final Marker marker = map.addMarker(createMarkerOptions(point));\n markerMap.put(marker, point);\n }\n }",
"private void addMarker( LatLng point ) {\n \t\tthis.markers.add( this.googleMap.a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
takes current piece and copies it into the board | public void placePiece(){
/*
i and j describe the indices on the board
pi and pj describe the corresponding indices of the current piece
for each space the current piece occupies, paint it onto the board
*/
int pi=0;
for(int i=pieceY; i<pieceY+currentPiece.getHei... | [
"private void copyToBoard(FallingPiece piece) {\r\n \ttablero.reverse();\r\n \tfor (BlockDrawable block : piece.allBlocks()){\r\n \t\tBlockDrawable aux = new BlockDrawable(piece.toOuterPoint(block.getPoint()), block.getStyle(), false, block.getTextureRegion()); \r\n\t\t\ttablero.add(aux);\r\n\t\t}\r\n \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Funcion con la cual genero el reporte de compras y ventas en el sistema | public void descargarReporteVentasCompras() {
ReporteLogica reporte = new ReporteLogica();
String documento = "";
RequestContext requestContext = RequestContext.getCurrentInstance();
try {
if ("pdf".equalsIgnoreCase(this.tipo)) {
String ruta = "";
documento = reporte.consultaRutaReporteCompVendidos(f... | [
"public String generarReporte (HttpServletRequest request,\n HttpServletResponse response) throws IOException {\n Empresa empresaSesion = (Empresa)request.getSession().getAttribute(\"emp\");\n String simbolo_moneda;\n \n if (empresaSesion != null && empresaSesion.getSimboloMon... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required string quality_max = 16; | java.lang.String getQualityMax(); | [
"java.lang.String getQuality();",
"public java.lang.String getQualityMax() {\n java.lang.Object ref = qualityMax_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
setteur niveau de la classe NiveauDouleur | public void setNiveau(int _niveau)
{
niveau = _niveau;
} | [
"public void setNiveau(int niveau) {\r\n this.niveau = niveau;\r\n }",
"public int getNiveau() {\r\n return niveau;\r\n }",
"public NiveauDouleur(NiveauDouleur _niveauDouleur) throws NiveauDouleurException\n {\n \tif (_niveauDouleur == null)\n \t{\n \t\tthrow new NiveauDouleurExc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional uint64 visit_endtime = 8; | long getVisitEndtime(); | [
"public long getVisitEndtime() {\n return visitEndtime_;\n }",
"long getVisitStarttime();",
"boolean hasVisitEndtime();",
"public long getVisit_end() {\n return visit_end;\n }",
"int getEndtime();",
"public Long getVisitTime() {\n return visitTime;\n }",
"public boolean hasVi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If the the menu is being cancelled, and the showSplitter field is true, it means the mouse is over the invoker button. So leave the button disabled until the mouse leaves the button. | public void popupMenuCanceled(PopupMenuEvent e) {
if (showSplitter) {
popupButtonActive = false;
} else {
popupButtonActive = true;
}
popupMenuIsShowing = false;
} | [
"protected void disableButton()\r\n\t\t{\r\n\t\tthis.launch.setEnabled(false);\r\n\t\tthis.cancel.setEnabled(false);\r\n\t\t}",
"public void cancel()\n\t{\n\t\t_buttonHit = true;\n\t}",
"public void enableQuitButton(){\n\t\tbtnStop.setVisible(true);\n\t}",
"public void buttonEnableHandler() {\n this.su... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines if the message arrived via an outofband POD extended channel or an inband transport stream. | public boolean isOutOfBandAlert()
{
return this.m_oobAlert;
} | [
"public boolean getRingDuringIncomingEarlyMedia();",
"public boolean isOutgoing();",
"public boolean isInactive()\n {\n return getEndpoints().stream().noneMatch(e -> e.isSendingAudio() || e.isSendingVideo());\n }",
"public void testRespondWithErrorOnInBandBytestreamRequest() throws XMPPException ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct a new Square with a start and end point | public Square(Point start, Point end, Boolean fill){ //constructor for class Rectangle
this.origin = start;
this.start = start;
this.end = end;
this.fill = fill;
} | [
"public Square() {\r\n\t\tsuper();\r\n\t\tthis.a = new Point(0, 0);\r\n\t\tthis.b = new Point(0, 0);\r\n\t\tthis.c = new Point(0, 0);\r\n\t\tthis.d = new Point(0, 0);\r\n\t}",
"public Square(){\n this.centerX = 0;\n this.centerY = 0;\n this.sideLength = 0;\n }",
"public Square(Point origin){\n\t\tsupe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test sum a row or a column | @Test
void rowAndColumnSumAlgorithmTest() throws IOException {
CSVDataSet dataSet = new CSVDataSet( "temp.csv", true, false );
dataSet.clearData();
dataSet.addRow( Arrays.asList(new String[]{"Column1", "Column2", "Column3", "Column4"}) );
dataSet.addRow( Arrays.asList(new String[]... | [
"public boolean sumColumns() {\n\t\tint sum = 0;\n\t\tboolean columnAnswer = true;\n\t\t\n\t\twhile(columnAnswer == true && column < size) {\n\t\t\tfor (row = 0; row < size; row++) {\n\t\t\t\tsum = sum + magicSquare[row][column];\n\t\t\t}//end for\n\t\t\t\n\t\t\tif(sum != standardTotal) \n\t\t\t\tcolumnAnswer = fal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets labels for portfolio values. | @FXML
private void setLabels() {
DecimalFormat formatter = new DecimalFormat("#,###.00");
portfolioValue.setText("$" + formatter.format(customer.totalPortfolio()));
portfolioValue.setId("customer-small-label");
portfolioValue.setTextAlignment(TextAlignment.LEFT);
cashValue.setText("$" + formatter.format(cu... | [
"public void setLabels () {\r\n setLabels (sliderMin, sliderMax);\r\n }",
"void setLabel(String label);",
"public void setLabels(Object labels) {\r\n this.labels = labels;\r\n }",
"void setLabel(String labelNew);",
"public void setLabels(String labels) {\n this.labels = labels;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test reject interview. This method test rest Api(/rejectinterview) | @Test
public void testRejectInterview() throws Exception {
when(interviewerService.rejectInterview(anyLong(), anyLong())).thenReturn(getInterview());
mockMvc.perform(MockMvcRequestBuilders.get("/rejectinterview/" + INTERVIEW_ID + "/" + CANDIDATE_ID + ""))
.andExpect(MockMvcResultMatchers.status().isCreated... | [
"@Test\r\n\tpublic void testAcceptInterview() throws Exception {\r\n\t\twhen(interviewerService.acceptInterview(anyLong())).thenReturn(getInterview());\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/acceptinterview/\" + INTERVIEW_ID + \"\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isCreated());\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Mutator method to set inventory record number | public void setInventoryRecordNumber (int inventoryRecordNumber)
{
this.inventoryRecordNumber = inventoryRecordNumber;
} | [
"public int getInventoryRecordNumber()\n {\n return inventoryRecordNumber;\n }",
"public void setInventoryNo(java.lang.String value) {\n this.inventoryNo = value;\n }",
"public com.fretron.Model.Equipment.Builder setInventoryNo(java.lang.String value) {\n validate(fields()[1], value);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GET /buytypes/:id : get the "id" buyType. | @GetMapping("/buy-types/{id}")
@Timed
public ResponseEntity<BuyTypeDTO> getBuyType(@PathVariable Long id) {
log.debug("REST request to get BuyType : {}", id);
BuyTypeDTO buyTypeDTO = buyTypeService.findOne(id);
return ResponseUtil.wrapOrNotFound(Optional.ofNullable(buyTypeDTO));
} | [
"@GetMapping(\"/types/{id}\")\n\tpublic ResponseEntity<Type> getTypeById(@PathVariable Long id) {\n\t\tType type = typeRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Type not exist with id :\" + id));\n\t\treturn ResponseEntity.ok(type);\n\t}",
"public BikeType getType(int typ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instance with a system name and an array of args | public TN5250Helper(String system, StringArrayList args) {
this();
this.system = system;
this.args = args;
} | [
"System createSystem();",
"public static void main (String[] args) {\r\n new Interaction(\r\n new Agent(\"system\"), \r\n new Agent(\"external\"),\r\n args.length > 0 && args[0].length() > 0 ? args[0] : null)\r\n .start(true); // given external agent first... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a ThreadLocal object without associating any value to it yet. | public ThreadLocal()
{
} | [
"public ThreadLocal() {}",
"public static BehaviorFactory THREAD_LOCAL() {\n \treturn new ThreadLocalizing();\n }",
"@Test\n\tpublic static void testThreadLocal() {\n\t\tExecutorService service = Executors.newCachedThreadPool();\n\n\t\tRunnable task = new Runnable() {\n\t\t\tThreadLocal<AtomicInteger> tlo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |