query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Checks if a state is final | public boolean isFinal(){
return status == INITIAL_FINAL || status == FINAL;
} | [
"public boolean isFinal(State s) {\n\t\treturn finalStates.contains(s);\n\t}",
"public boolean isFinalState() {\n return finalState[currentState.getValue()];\n }",
"public boolean isFinalState(final State state) {\n\t\treturn finalStates.contains(state);\n\t}",
"public boolean isFinal() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Applied to the last column footers. | String lastColumnFooter(); | [
"public abstract void afterFooterRow(List<Column> columns);",
"private void addColumnFooter()\n {\n addIndent();\n openEndTag(COLUMN);\n closeTag();\n }",
"String firstColumnFooter();",
"protected Widget addFooter() {\n return null;\n }",
"public boolean isColumnFooter()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'field1026' field has been set | public boolean hasField1026() {
return fieldSetFlags()[1026];
} | [
"public boolean hasField1025() {\n return fieldSetFlags()[1025];\n }",
"public boolean hasField1040() {\n return fieldSetFlags()[1040];\n }",
"public boolean hasField1028() {\n return fieldSetFlags()[1028];\n }",
"public boolean hasField1020() {\n return fieldSetFlags()[1020];\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called by the Spring MVC controller to display the generalinformation library page. | @RequestMapping({"/libraryInfo.html", "/libraryInfo.htm"})
public String libraryInfo(@RequestParam(value = "baseNamespace") String baseNamespace,
@RequestParam(value = "filename") String filename, @RequestParam(value = "version") String version,
HttpSession session, Model model) {
String tar... | [
"public Display_info() {\n initComponents();\n db_connect();\n }",
"private String application1(HttpServletRequest request, HttpServletResponse response) throws ClassNotFoundException, ServletException {\n\t\t\n\t\t\n\t\treturn \"loanDetails.jsp\";\n\t}",
"@RequestMapping(value = \"displayOrgan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'field220' field | public java.lang.CharSequence getField220() {
return field220;
} | [
"public java.lang.CharSequence getField220() {\n return field220;\n }",
"public java.lang.CharSequence getField210() {\n return field210;\n }",
"public java.lang.CharSequence getField207() {\n return field207;\n }",
"java.lang.String getField1168();",
"public java.lang.CharSequence getField210()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Enables or disables tethering for the given type. This should only be called once provisioning has succeeded or is not necessary. It will also schedule provisioning rechecks for the specified interface. | private void enableTetheringInternal(int type, boolean enable, ResultReceiver receiver) {
boolean isProvisioningRequired = enable && isTetherProvisioningRequired();
int result;
switch (type) {
case ConnectivityManager.TETHERING_WIFI:
result = setWifiTethering(enable);... | [
"@LargeTest\n @Suppress\n public void testWifiTetheringDisableEnable() throws InterruptedException {\n WifiConfiguration config = new WifiConfiguration();\n config.SSID = NETWORK_ID;\n config.allowedKeyManagement.set(KeyMgmt.WPA_PSK);\n config.allowedAuthAlgorithms.set(AuthAlgorith... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
showwarnings show warnings? (errors are always shown). | public boolean getShowWarnings()
{
return configuration.showWarnings;
} | [
"public static void showWarnings() {\n\t\tenableWarn = true;\n\t}",
"public void setShowWarnings(boolean showWarnings)\n {\n configuration.showWarnings = showWarnings;\n }",
"public static void hideWarnings() {\n\t\tenableWarn = false;\n\t}",
"public void printWarnings() {\n final int size... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialize with EventProcessHelper for each BPELEventListener | void init(EventProcessHelper eventHelper); | [
"private void initListener() {\n\n Utility.context = this;\n // set alarm\n if (Utility.as == null) {\n Utility.as = new AlarmSetter();\n Utility.as.SetAlarm(this);\n }\n DiagnosticMalfunction.mListener = this;\n ChatClient.icListner = this;\n\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
function to replace Individual offspring with the fittest Individual in population | public static void replaceWorstWithFittest(Individuals offspring[],int pop, Individuals fittest){
int worstFitness = getWorstFitness(offspring,pop);
for(int i = 0; i<pop; i++){
if(offspring[i].fitness == worstFitness){
offspring[i] = fittest;
break;
}
}
} | [
"public FitnessModel addFittestOffspring(Population population, FitnessModel fitnessModel) {\n\n //Update fitness values of offspring\n \tfitnessModel.fittest.checkFitness();\n \tfitnessModel.secondFittest.checkFitness();\n\n //Get index of least fit individual\n int leastFittestIndex = p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
do something here Toast.makeText(view.getContext(),"Color "+newColor,Toast.LENGTH_SHORT).show(); | @Override
public void onColorChanged(int newColor) {
color.setBackgroundColor(newColor);
color.setTextColor(newColor);
tagColor=newColor;
... | [
"private void showToast(int color) {\n String rgbString = \"R: \" + Color.red(color) + \" B: \" + Color.blue(color) + \" G: \" + Color.green(color);\n Toast.makeText(this, rgbString, Toast.LENGTH_SHORT).show();\n }",
"public static void PrintColorToast(Context context, String msg, Integer color)\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the currency pair. | public Pair<Currency, Currency> getCurrencyPair() {
return _currencyPair;
} | [
"public String getCurrencyPair() {\n return _ccyPair;\n }",
"public Currency getCurrency() {\n return curr(getValue());\n }",
"String getTradeCurrency();",
"public Currency getCurrency2() {\n return _underlyingForex.getCurrency2();\n }",
"public Currency getSecondCurrency() {\n return _... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets value as attribute value for RETURN_DATE using the alias name ReturnDate. | public void setReturnDate(Number value) {
setAttributeInternal(RETURNDATE, value);
} | [
"public void setReturnDate(Date returnDate);",
"public void setReturnDate(DateTime returnDate) {\r\n\t\tthis.returnDate = returnDate;\r\n\t}",
"public void setDateOfReturn(String dateOfReturn){\n this.dateOfReturn = dateOfReturn;\n }",
"public Number getReturnDate() {\n return (Number) getAtt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get implementationspecific integer sequence instance for given array of intervals. Expects a two dimensional array of integers where second dimension contains exactly tow values for each entry. | public abstract IntegerSequence getSequence(int[][] intervals); | [
"public abstract IntegerSequence getSequence(List<IntegerInterval> intervals);",
"public abstract IntegerInterval getInterval(int[] interval);",
"public IntegerSequence(int[][] intervals, IntegerSequenceFactory factory) {\n\t\n\t_factory = factory;\n\t\n\tif (intervals.length > 0) {\n\t int[] prev = null;\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a reference to the mineField that this VisibleField "covers" | public MineField getMineField() {
return underlyingField;
} | [
"public MineField getMineField() {\n\n return mineField;\n }",
"Field getMineField() {\n return mineField;\n }",
"private Field getCurrentField() {\t\n\t\tfor(Object obj : grid.getObjectsAt(myLocation().getX(), myLocation().getY())) {\n\t\t\tif(obj instanceof Field) {\n\t\t\t\treturn (Field)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add a single mail message to the index | public static void addMail(IndexWriter oIWrt,
String sGuid, BigDecimal dNumber, String sWorkArea,
String sContainer, String sSubject,
String sAuthor, String sRecipients, Date dtSent,
String sComments,... | [
"info.inetsolv.xyz.his.own.tags.SimplemailDocument.Simplemail addNewSimplemail();",
"public void addMailMessage(MailMessage m)\r\n\t{\r\n\t\t// TODO: Play a sound and make the Messages button flash\r\n\t\tmessagesAnimationLabel.setVisible(true);\r\n\t\trepaint();\r\n\t\t\r\n\t\ttheGridView.addMailMessage(m);\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Application program 1) Load employee data into a list of Employee elements 2) Create a weekly payroll file from the Employee list | public static void main(String[] args) throws IOException
{
ArrayList<Employee> company = new ArrayList<Employee>();
Scanner inStream = new Scanner( new FileReader("employees.txt") );
loadEmployeeData(company, inStream);
PrintWriter payRollFile = new PrintWriter("payroll.txt");
... | [
"public void loadEmployees(String fileName)\r\n\t{\r\n\t\t//try block to attempt to open the file\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//declare local variables for the file name and data fields within the employeelist text file\r\n\t\t\t//these will all be Strings when pulled from the file, and then converted to the prope... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the sub type from the given instance of DbProcStat based on the given string. | private DbSysStat getSubType(String dbname, DbProcStat dps) {
for (DbSysStat dss : dps.getDbProcLst()) {
if (dbname.equals(dss.getDbname())) {
return dss;
}
}
return null;
} | [
"public SubpType // (##6)\nfindSubpType();",
"public edu.umich.icpsr.ddi.ProcStatType getProcStat()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.ProcStatType target = null;\n target = (edu.umich.icpsr.ddi.ProcStatType)get_store()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests the hasDependency() method after a get operation. | @Test
public void testHasDependencyAfterGet() throws JellyTagException
{
tag.setRefClass(getClass());
assertNotNull("No dependency returned", tag.getDependency());
assertTrue("Tag does not have a dependency", tag.hasDependency());
} | [
"public boolean isNewDependency(Dependency dependency) {\n // your code here\n return false;\n }",
"@Test\n public void testGetDependency() throws JellyTagException\n {\n tag.setRefName(\"testName\");\n Dependency dep = tag.getDependency();\n Dependency dep2 = tag.getDe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retruen your view that set by setBaseView | @Override
public View getView() {
return mBaseView;
} | [
"protected abstract void customizeViews(View rootView);",
"protected void resetView()\n\t{\n\t \n\t}",
"protected abstract void initView(View parentView);",
"protected void setView( View view ) {\n this.view = view;\n }",
"protected abstract void initViews();",
"void setView(String viewType);",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create excel work book by area power load data | public static HSSFWorkbook createExcelWorkBook(final Map<Integer, String> areaNameMap,
final Map<Integer, Map<Integer, List<String>>> attrMap, final Map<Integer, List<String>> tranPowerLoad,
final String[] lv1Header, final String[] lv1HeaderPos, final String[] lv2Header,
final String... | [
"public void createWorkbook() {\r\n\t\tHSSFWorkbook workbook = new HSSFWorkbook();\r\n\r\n\t\twriteIntoFile(workbook);\r\n\t}",
"private void createExcelReport() {\n\t\t// logger.entering();\n\n\t\twb = new HSSFWorkbook();\n\t\tStyles.initStyles(wb);\n\t\t\n\t\t//Report Details\n\t\tthis.createReportInfo();\n\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets array of all "Lanes" elements | org.landxml.schema.landXML11.LanesDocument.Lanes[] getLanesArray(); | [
"java.util.List<org.landxml.schema.landXML11.LanesDocument.Lanes> getLanesList();",
"org.landxml.schema.landXML11.LanesDocument.Lanes getLanesArray(int i);",
"public ArrayList<Lane> getLanes() {\r\n return lanes;\r\n }",
"public HashSet<Lane> getLanes() {\n\t\treturn lanes;\n\t}",
"public static j... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the angle at the specified length along the path. | public float angleAtLength(float length) {
return pathLength.angleAtLength(length);
} | [
"public double getAngle(){\r\n\t\tfloat temp = this.dot(new Vector2f(0, 1));\r\n\t\ttemp /= this.lenght();\r\n\t\tif (this.getX() > 0)\r\n\t\t\treturn (360 - Math.toDegrees(Math.acos(temp)));\r\n\t\telse\r\n\t\t\treturn Math.toDegrees(Math.acos(temp));\r\n\t}",
"public double getPathAngle() {\n pathAngle = pa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes the specified text event listener so that it no longer receives text events from this text component If l is null, no exception is thrown and no action is performed. Refer to AWT Threading Issues for details on AWT's threading model. | public synchronized void removeTextListener(TextListener l) {
if (l == null) {
return;
}
textListener = AWTEventMulticaster.remove(textListener, l);
} | [
"public void removeTextListener(TextListener l) {\r\n\t\tlisteners.removeElement(l);\r\n\t}",
"void removeTextListener(TextListener l);",
"public void removeNPTListener(NPTListener l) {}",
"public void removeEventListener(JaimEventListener l) {\n eventListeners.remove(l);\n }",
"public void remove... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
erase() redraws the paddle (line segment) each time it is called. | public void erase() {
synchronized(app) {
Graphics g = app.getGraphics();
g.setColor(Color.white);
g.drawLine (location.x, location.y, location.x, location.y + SIZE);
g.drawLine (location.x+1, location.y, location.x+1, location.y + SIZE);
g.dispose();
}
} | [
"public void erase()\n {\n canvas.eraseCircle((int)xPosition, (int)yPosition, diameter);\n }",
"public void eraseLines() {\n for (int i = 0; i < segments.size() - 1; i++) {\n paintLine((Point2D) (segments.elementAt(i)),\n (Point2D) (segments.elementAt(i + 1)));... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Converts object for entity by specified type. This method is used in order to set converted objects to entities. You can change behavior of this method by overriding this method. | protected <T> T convertForEntity(Object value, Class<T> type) {
return typeConversionManager.convert(value, type);
} | [
"public void setENTITYType() {\r\n type = ENTITY;\r\n }",
"public abstract T convertToEntity(D dto);",
"protected abstract <T> T cursorToEntity(Cursor cursor);",
"protected <T> T convert(Object value, Class<T> type) {\r\n return typeConversionManager.convert(value, type);\r\n }",
"Object to... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
declare an object of type EnumTest passing in Monday; then invoke the method tellItLikeItIs(). | public static void main(String[]args){
EnumTest firstDay = new EnumTest(Day.MONDAY);
firstDay.tellItLikeItIs();
EnumTest secondDay = new EnumTest(Day.TUESDAY);
secondDay.tellItLikeItIs();
EnumTest thirdDay = new EnumTest(Day.WEDNESDAY);
thirdDay.tellItLikeItIs();
EnumTest fourthDay = new EnumTest(Day.THUR... | [
"public EnumTest(Day day){\n\t\tthis.day=day;\n\t}",
"@ParameterizedTest\n @EnumSource(value = DaysOfWeek.class, names = {\"SATURDAY\", \"SUNDAY\"})\n void testEnumSource(DaysOfWeek day) {\n assertTrue(() -> day == SUNDAY || day == SATURDAY);\n }",
"@Test\n void simpleEnumTest(){\n\n U... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check for guarenteed wumpus | private boolean isFactWumpus(int y, int x){
try{
return knowledgeBase[y][x][3]; //True if Guarenteed wumpus
}catch(IndexOutOfBoundsException e){ // catch out of bounds exception for edge of world
return false;
}
} | [
"private boolean validWumpusCoord(int x, int y) {\n return !(x == 0 && y == 0) && !(x == 0 && y == 1) && !(x == 1 && y == 0);\n }",
"private boolean isWumpus(int y, int x){\n try{\n return knowledgeBase[y][x][4]; //True if suspected wumpus\n }catch(IndexOutOfBoundsException e){ // cat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Crop images from a FITS file with extensions, given image coordinates Read the images directly from the FITS file on disk and write the output to disk | static public void crop_extensions(String in_filename, String out_filename,
int min_x, int min_y, int max_x, int max_y)
throws FitsException, IOException {
Fits in_fits = new Fits(in_filename);
Fits out_fits = new Fits();
int x_center = (min_x ... | [
"static public Fits do_crop(Fits inFits, int extension,\n int min_x, int min_y, int max_x, int max_y)\n throws FitsException, IOException {\n int x_center = (min_x + max_x) / 2;\n int y_center = (min_y + max_y) / 2;\n int x_size = Math.abs(max_x - min_x)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'field817' field has been set | public boolean hasField817() {
return fieldSetFlags()[817];
} | [
"public boolean hasField816() {\n return fieldSetFlags()[816];\n }",
"public boolean hasField811() {\n return fieldSetFlags()[811];\n }",
"public boolean hasField815() {\n return fieldSetFlags()[815];\n }",
"public boolean hasField818() {\n return fieldSetFlags()[818];\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the InboundEndpointsClient object to access its operations. | public InboundEndpointsClient getInboundEndpoints() {
return this.inboundEndpoints;
} | [
"EndpointsClient getEndpoints();",
"OperationsClient getOperations();",
"public final com.google.longrunning.OperationsClient getOperationsClient() {\n return operationsClient;\n }",
"AfdEndpointsClient getAfdEndpoints();",
"@BetaApi(\n \"The surface for long-running operations is not stable yet an... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if the syllable has the specified feature | public static boolean hasFeature(char syl, int feature) {
if (syl < HANGUL_START || syl > HANGUL_END) {
return false; // outside of hangul syllable range
} else {
return features.get((syl - HANGUL_START) * NUM_FEATURES + feature);
}
} | [
"boolean containsFeature(Feature feature);",
"boolean isFeatureSupported(String feature);",
"boolean hasHasFeature();",
"public boolean includesFeature(String feature) {\n synchronized (features) {\n return features.contains(feature);\n }\n }",
"public boolean containsFeature(Str... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the name of the instrument from the selected RadioButton | @FXML
public String getInstrument()
{
RadioButton b = (RadioButton)instrumentPanel.getSelectedToggle();
return (b.getText());
} | [
"private String getSelected(List<JRadioButton> buttons) {\n for (JRadioButton button : buttons) {\n if (button.isSelected()) {\n return button.getText();\n }\n }\n return \"\";\n }",
"public String getInstrumentName() {\r\n return MusicManager.getInstrumentName(synthInstrument);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method will run at 00:00:00am every day to validate and expire all matured trades. | @Scheduled(cron = "0 0 0 * * ?")
public void executeMaturityTrades() {
final Stream<Trade> maturedTrades = this.getTrades().stream()
.filter(item -> item.getmDate().before(DateTimeUtils.getTodayDate()));
maturedTrades.forEachOrdered(item -> item.setExpired('Y'));
System.out.println("All matured trades set to... | [
"@Scheduled(cron = \"${trade.expiry.schedule}\")\n\tpublic void updateExpiredTrade() {\n\t\tlogger.info(\"Updating Trade expiry flag\");\n\t\ttradeRepository.findAll().stream().filter(t -> t.getMaturityDate().isBefore(LocalDate.now())).forEach(t -> \n\t\t{\n\t\t\tt.setExpired(\"Y\");\n\t\t\tlogger.info(\"Trades whi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string tumorSampleName = 4; | public Builder setTumorSampleName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
tumorSampleName_ = value;
onChanged();
return this;
} | [
"java.lang.String getTumorSampleName();",
"public java.lang.String getTumorSampleName() {\n java.lang.Object ref = tumorSampleName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.pro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a new Wiki (called WikiNode in Liferay) to the topicmap. Sets applicable associations (i.e. contains). | public void addWikiNode(WikiNode wikinode); | [
"public void addWikiPage(WikiPage wikipage);",
"public synchronized void addWikiEntry(String wikiTitle, String wikiText) {\r\n\t\twikiList.put(wikiTitle, wikiText);\r\n\t}",
"private void addTopic(TopicMapIF tm, TMObjectMatcherIF matcher,\n Collection topics) {\n if (matcher instanceof... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Starts a bulk disassociatin of all qualifying wireless devices from a multicast group. | @Override
public StartBulkDisassociateWirelessDeviceFromMulticastGroupResult startBulkDisassociateWirelessDeviceFromMulticastGroup(
StartBulkDisassociateWirelessDeviceFromMulticastGroupRequest request) {
request = beforeClientExecution(request);
return executeStartBulkDisassociateWireles... | [
"@Override\n public StartBulkAssociateWirelessDeviceWithMulticastGroupResult startBulkAssociateWirelessDeviceWithMulticastGroup(\n StartBulkAssociateWirelessDeviceWithMulticastGroupRequest request) {\n request = beforeClientExecution(request);\n return executeStartBulkAssociateWirelessDe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get List product link forms | public List<ProductLinkFormDto> getListProductLinkForms(Jedis jedis, Gson gson, String key) {
return communityRedisRepos.getListProductLinkForms(jedis, gson, key);
} | [
"List<ProductLink> links();",
"public String navigateProductmodelillustrationList() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Productmodelillustration_items\", this.getSelected().getProductmodelillustrationList());\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__IterateExp__NameAssignment_1" $ANTLR start "rule__IterateExp__IteratorsAssignment_3" InternalOCLlite.g:10753:1: rule__IterateExp__IteratorsAssignment_3 : ( ruleIterator ) ; | public final void rule__IterateExp__IteratorsAssignment_3() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalOCLlite.g:10757:1: ( ( ruleIterator ) )
// InternalOCLlite.g:10758:2: ( ruleIterator )
{
// InternalOCL... | [
"public final void rule__IterateExp__IteratorsAssignment_4_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOCLlite.g:10772:1: ( ( ruleIterator ) )\n // InternalOCLlite.g:10773:2: ( ruleIterator )\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .com.bingo.server.msg.GetRoleDataRequest GetRoleDataRequest = 12; | public com.bingo.server.msg.Role.GetRoleDataRequestOrBuilder getGetRoleDataRequestOrBuilder() {
if (getRoleDataRequestBuilder_ != null) {
return getRoleDataRequestBuilder_.getMessageOrBuilder();
} else {
return getRoleDataRequest_ == null ?
com.bingo.server.msg.Role.Get... | [
"com.bingo.server.msg.Role.GetRoleDataRequest getGetRoleDataRequest();",
"com.bingo.server.msg.Role.GetRoleDataRequestOrBuilder getGetRoleDataRequestOrBuilder();",
"com.bingo.server.msg.Login.LoginGetRoleDataRequest getLoginGetRoleDataRequest();",
"public com.bingo.server.msg.Role.GetRoleDataRequestOrBuilder ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XAndExpression__Group_1_0_0__0__Impl" $ANTLR start "rule__XAndExpression__Group_1_0_0__1" InternalDroneScript.g:6143:1: rule__XAndExpression__Group_1_0_0__1 : rule__XAndExpression__Group_1_0_0__1__Impl ; | public final void rule__XAndExpression__Group_1_0_0__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDroneScript.g:6147:1: ( rule__XAndExpression__Group_1_0_0__1__Impl )
// InternalDroneScript.g:6148:2: rule__XAndExpression__... | [
"public final void rule__XAndExpression__Group_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4238:1: ( ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the maxIdleConns property. | public void setMaxIdleConns(int value) {
this.maxIdleConns = value;
} | [
"public int getMaxIdleConns() {\n return maxIdleConns;\n }",
"public void setMaxConnections(int maxConn) {\n _maxConn = maxConn;\n }",
"public void setMaxConnections(int maxConnections) {\n this.maxConnections = maxConnections;\n }",
"public void setMaxConnections(int maxConnecti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new SplashScreen. The constructor attempts to load the named image and begins a timeout thread. The splash screen can be dismissed with a key press, a pointer press, or a timeout (hardcoded at three seconds). | public SplashScreen(String name, Display display, Displayable next) throws IOException
{
mImage = Image.createImage(name);
mDisplay = display;
mNextDisplayable = next;
Thread t = new Thread(this);
t.start();
setFullScreenMode(true);
} | [
"public void splashScreen ()\r\n {\r\n\t// Creates thread\r\n\tSplashScreen s = new SplashScreen (c);\r\n\t// Commences thread execution\r\n\ts.run ();\r\n }",
"public void splashScreen() {\r\n\tSplashScreen ss = new SplashScreen (c);\r\n\tss.run ();\r\n }",
"public SplashScreen() {\n\n run();\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prepare instance of serializer from choice class. | public static ChoiceDispatchSerializer from(final Class<? extends Instantiable<?>> choiceClass) {
return new ChoiceDispatchSerializer(choiceClass);
} | [
"@Override\r\n public Serializer getSerializationFor(SerializationType type) {\r\n\tswitch (type) {\r\n\tcase XML: \r\n\t return new XMLSerializator();\r\n\tcase JSON:\r\n\t return new JSONSerializator();\t \r\n\t}\r\n\t\r\n\treturn null;\r\n }",
"Serializer<T> getSerializer();",
"public Serialize... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the text currently underlying the window. | public String getText(){
return window.getText();
} | [
"public String getText(){\r\n\t\treturn textPane.getText();\r\n\t}",
"public String getText() {\n\t\t\treturn text.get();\n\t\t}",
"public Text getText() {\n return new TranslatableText(\"keystrokes.text_display_mode.\" + this.getName());\n }",
"public String getTextOnPage()\n {\n return m... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Puts a question in the rear of the queue. | public void addQ (Question Q)
{
newQuestion = Q;
enqueue();
} | [
"public void enqueue ()\n {\n count++;\n questionList.add(newQuestion);\n //System.out.println(\"Question #\"+ totNumQ + \" is added to the queue.\");\n }",
"public void setQue(Ship q) { \n\t\tque.add(q); \n\t}",
"public void queue(Object newItem){\n if(isFull()){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column alipay_back_spare.buyer_email | public String getBuyerEmail() {
return buyerEmail;
} | [
"@JsonGetter(\"buyer_email_address\")\r\n public String getBuyerEmailAddress() {\r\n return buyerEmailAddress;\r\n }",
"public java.lang.String getBuyerMarketingEmail() {\r\n return buyerMarketingEmail;\r\n }",
"public String getBemail() {\n return bemail;\n }",
"public String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Try to force a DecorationContext to accept the REPLACE decoration method | private static void allowReplace(IDecorationContext context) {
DecorationContext dcontext = (DecorationContext) context;
Object propertyValue = dcontext.getProperty(IDecoration.ENABLE_REPLACE);
boolean add = (propertyValue==null);
if(!add)
if(propertyValue instanceof Boolean)
add = (!(Boolean)propertyVal... | [
"Replace createReplace();",
"@Override\n\tprotected void decorate() {\n\t}",
"private ArtifactContext replace(ArtifactContext context, ArtifactContext replacingContext) {\n ArtifactContext ret = context.copy();\n ret.setName(replacingContext.getName());\n // inherit version from the artifac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the Book to display in this view. | public void setBook(Book book) {
setBook(book, false, false);
} | [
"public void setBook(Book book) {\n this.book = book;\n }",
"public void setBook(Book book, boolean showTitleAndAuthor) {\n\n if(book != null) {\n setVisibility(View.VISIBLE);\n } else {\n setVisibility(View.INVISIBLE);\n }\n\n mBookCover.setBook(book);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO BEWARE this should copy the solution, not the reference to it! That is, that if we apply a heuristic to the solution in index 'b', then it does not modify the solution in index 'a' or viceversa. | @Override
public void copySolution(int iIndexA, int iIndexB) {
PWPSolutionInterface oCandidateSolution = getSolution(iIndexA).clone();
aoMemoryOfSolutions[iIndexB] = oCandidateSolution;
} | [
"Solution clone();",
"public static Solution performHeuristic(){\r\n\t\t//Initialize the problem to be solved by heuristic method\r\n\t\tinitialization();\r\n\t\t\r\n\t\t//Construct a solution\r\n\t\tSolution s = construction();\r\n\t\t//System.out.println(\"Heuristic => Construction : \"+s.isFeasible()+\":\" +s.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check whether this tweet has images or content, otherwise it should be ignored At the same time, we should check the value of them should not be null or empty | public boolean canbeIgnored() {
return mContent.isEmpty() && mImages.isEmpty();
} | [
"public boolean verifyEmptyToDoImage() {\n if (validateAttributeContain(imageEmptyToDo, \"src\", \"images/icons/clipboard.png\", \"Image Empty ToDo\")) {\n return true;\n }\n return false;\n }",
"@Test\n public void imageAltTextIsNotEmpty() throws IOException {\n\n Doc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes the name of school list of this Student. | public void setSchool(ArrayList<String> school) {
this.school = school;
} | [
"public void setSchoolName(String schoolName) {\n this.schoolName = schoolName;\n }",
"public void setSchoolName(String schoolName){\n\t\tthis.schoolName = schoolName;\n\t}",
"public void setStudent_schoolName(java.lang.String student_schoolName) {\n\t\t_primarySchoolStudent.setStudent_schoolName(stu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
redundantlystored list length Definitions: For a Cons c, let Seq(c) be [] if c == null, [c.head]:Seq(c.tail) otherwise Count(c) be 0 if c == null, 1 + Count(c.tail) otherwise (These are helper functions that will make it easier for us to write the remainder of the specifications. They are seperated out because the natu... | public RatPolyStack() {
size = 0;
polys = null;
} | [
"@Override\n public int size() {\n //create a counter\n int count = 0;\n\n //if it's not empty, count\n if(!isEmpty()) {\n for(T element : stack) { //for every element count\n if(element != null) {\n count++; //count is only incremented if ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for the COM property "MainBody" | @DISPID(1610940416) //= 0x60050000. The runtime will prefer the VTID if present
@VTID(23)
void mainBody(
Body oMainBody); | [
"public void setBody(Object body) {\n this.body = body;\n }",
"void setBody (DBody body);",
"@DISPID(1610940416) //= 0x60050000. The runtime will prefer the VTID if present\n @VTID(22)\n Body mainBody();",
"public void setBody(String body)\n\t{\n\t\tm_sBody=body;\t\n\t}",
"public abstrac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Replace the logger by another one. A value of null installs the prg.pf.logging.NilLogger. | public static void setLogger2(Logger2 newLogger)
{
if (newLogger == null)
{
logger = new Logger2Logger(new NilLogger());
}
else
{
logger = newLogger;
}
} | [
"public static void setLogger(Logger newLogger)\n {\n setLogger2(new Logger2Logger((newLogger == null) ? new NilLogger() : newLogger));\n }",
"public void setLogger(Logger logger);",
"public void setLogger(Logger logger) {\n this.logger = logger;\n }",
"public void setLogger(Logger log){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 93 / 1 covered goal: Goal 1. wheel.components.Component.acronym(Ljava/lang/Object;)Lwheel/components/Component;: rootBranch | @Test
public void test093() throws Throwable {
ErrorPage errorPage0 = new ErrorPage();
Label label0 = (Label)errorPage0.acronym((Object) errorPage0);
assertTrue(label0._isGeneratedId());
assertEquals("wheel_ErrorPage", errorPage0.getComponentId());
} | [
"HibBranch getBranch(InternalActionContext ac, HibProject project);",
"public GitBranch(String aName) { _name = aName; }",
"public String getAbnormalBranchString() { return abnormalBranchStr; }",
"@Test\n public void test062() throws Throwable {\n Form form0 = new Form(\"$ F#%uEq\");\n Form form... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Runs all the pending UPDATE deployment scripts. | public boolean runAllPendingScripts() {
if (LOG.isInfoEnabled()) {
LOG.info("Running all pending update deployment scripts.");
}
return this.runAllPendingScriptsInAllExtensions(false);
} | [
"@SystemSetup(type = SystemSetup.Type.ALL, process = SystemSetup.Process.ALL)\n public void runUpdateDeploymentScripts(\n final SystemSetupContext hybrisContext) {\n if (getConfiguredCreateDataStep().equals(hybrisContext.getType())) {\n final UpdatingSystemExtensionContext context = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return true if this dimlet is a modifier. | boolean isModifier(); | [
"public boolean isModifier() {\n return mask != 0;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isIsModifier();",
"public Boolean getIsModifier() { \n\t\treturn getIsModifierElement().getValue();\n\t}",
"boolean hasAppliedModifier();",
"protected boolean isModifier... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Applies the current rotation matrix to the samples | private void applyRotation(float[][] samples, int numSamples)
{
for (int s=0; s<numSamples; ++s) {
for (int d=0; d<Constants.ACCEL_DIM; ++d) {
tempVec[d] = 0.0f;
for (int k=0; k<Constants.ACCEL_DIM; ++k) {
tempVec[d] += rotationMat[(d*3)+k] * samples[s][k];
}
}
for (int d=0; d<Cons... | [
"public void applyTransformations() \r\n {\r\n double[][][] rotations = IDENTITY_MATRICES; // Rotations are done from scratch.\r\n double[][][] displacements = IDENTITY_MATRICES; // Displacements are a modified identity matrix (see below).\r\n \r\n boolean rChanged[] = new boolean[... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
calculate the distance given two node IDs | public double calculateDistance(Integer nodeID1, Integer nodeID2) {
return calculateDistance(getNode(nodeID1), getNode(nodeID2));
} | [
"public static double calculateDistance(Node first, Node second){\n double value = Math.sqrt(Math.pow(first.getX()-second.getX(), 2) + Math.pow(first.getY()-second.getY(), 2));\n return DoubleHandler.round(value, 1);\n }",
"private static double distance(Node n1, Node n2) {\n return Math.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__PlusOrMinus__Group__0__Impl" $ANTLR start "rule__PlusOrMinus__Group__1" InternalDsl.g:30566:1: rule__PlusOrMinus__Group__1 : rule__PlusOrMinus__Group__1__Impl ; | public final void rule__PlusOrMinus__Group__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDsl.g:30570:1: ( rule__PlusOrMinus__Group__1__Impl )
// InternalDsl.g:30571:2: rule__PlusOrMinus__Group__1__Impl
{
... | [
"public final void rule__PlusOrMinus__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTym.g:2666:1: ( rule__PlusOrMinus__Group__1__Impl )\n // InternalTym.g:2667:2: rule__PlusOrMinus__Group__1__Impl\n {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Access the assessment's presentation; the rich text and attachments that describe the assessment. | Presentation getPresentation(); | [
"public Presentation getPresentation()\r\n\t{\r\n\t\treturn this.presentation;\r\n\t}",
"public java.lang.Integer getPresentation() {\r\n return presentation;\r\n }",
"io.grafeas.v1.VulnerabilityAssessmentNote.Assessment getAssessment();",
"public Assessment<? extends XMLDocument> getAssessment() {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for property journal. | public String getJournal() {
return this.journal;
} | [
"public String getJournal() {\n return journal;\n }",
"java.lang.String getJournal();",
"public String getJournal();",
"public String getJournalFilePath() {\n return journalFilePath;\n }",
"public JournalArticlePersistence getJournalArticlePersistence() {\n\t\treturn journalArticlePersis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Print the Manual List of Figures | public abstract void printListofFigures(); | [
"public void printShapes() {\n System.out.println(\"PRINT THE SHAPES AS AN ARRAY OF SHAPE\");\r\n for ( int i = 0; i < shapes.length; i++ ) {\r\n System.out.println(shapes[i].getName() + \": \" +\r\n shapes[i].toString() + \", ID: \" +\r\n shapes[i].getI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | @javax.annotation.Nullable
@ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.")
public IntOrStrin... | [
"private String checkPrimitive(String type) {\n if(type.equals(\"int\")) return \"Integer\";\n if(type.equals(\"short\")) return \"Short\";\n if(type.equals(\"long\")) return \"Long\";\n if(type.equals(\"float\")) return \"Float\";\n if(type.equals(\"double\")) return \"Double\";\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns application specification by id. | @Nullable
ApplicationSpecification getApplication(Id.Application id); | [
"ApplicationSpecification getApplication(Id.Application id) throws OperationException;",
"Collection<ApplicationSpecification> getAllApplications(Id.Namespace id);",
"public static Optional<SystemApplication> matching(ApplicationId id) {\n return Arrays.stream(values()).filter(app -> app.id().equals(id))... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string mb06 = 44; | java.lang.String getMb06(); | [
"java.lang.String getMb18();",
"java.lang.String getMb13();",
"public java.lang.String getMb06() {\n java.lang.Object ref = mb06_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Takes a hostTree, parasiteTree, tip mapping function phi, and a cost tuple and returns the DP table C. | public static int DP(Tree hostTree, Tree parasiteTree, Phi phi, CostTuple costs){
int costCo = costs.getCospeciationCost();
int costDup = costs.getDuplicationCost();
int costLoss = costs.getLossCost();
int costSwitch = costs.getHostSwitchCost();
int hostSize = hostTree.s... | [
"public ContingencyTable(int tp, int fp, int tn, int fn){\n this.tp = tp;\n this.fn = fn;\n this.fp = fp;\n this.tn = tn;\n }",
"public void generateCost() throws StandardException {\n\n double baseTableSelectivity = computePhaseSelectivity(selectivityHolder,QualifierPhase.BA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The initial response optional .search.now.wire.feed.Response initial_response = 1; | private void setInitialResponse(com.google.search.now.wire.feed.ResponseProto.Response value) {
if (value == null) {
throw new NullPointerException();
}
initialResponse_ = value;
bitField0_ |= 0x00000001;
} | [
"com.google.search.now.wire.feed.ResponseProto.Response getInitialResponse();",
"private void setInitialResponse(\n com.google.search.now.wire.feed.ResponseProto.Response.Builder builderForValue) {\n initialResponse_ = builderForValue.build();\n bitField0_ |= 0x00000001;\n }",
"public com.go... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set Text to show to tell the user that a refresh is currently in progress. | public void setRefreshingText(CharSequence refreshingText) {
mRefreshingLabel = refreshingText;
} | [
"private void updateStatus(String text)\n\t{\n\t\tlblStatusLine.setText( text );\n\t}",
"public void setStatusText(String text);",
"public void setStatusText(String text) {\r\n\t\tthis.status_text.setText(text);\r\n\t}",
"public void showStatusLabel(String text) {\n\t\tthis.statusLabel.setText(text);\n\t\tthi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Extracts from the request and the configuration the URL behind teh name of a given BACKGROUND | private URL createBackgroundImageURL( GetView request )
throws OGCWebServiceException {
String imageName = request.getVendorSpecificParameter( "BACKGROUND" );
URL imgURL = null;
if ( imageName != null ) {
imgURL = config.getDeegreeParams().getBackgroundMa... | [
"String getBackground();",
"private String addBackground() {\n\t\t// One Parameter: BGName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|background:\" + parameters[0]);\n\t\treturn tag.toString();\n\n\t}",
"String getRemediationBackground();",
"public String bgImageUrl() {\n\n\tString imag... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Click Clear Search Button | public void clickClearSearchButton() {
this.clearSearchButton.click();
} | [
"public void clickClearButton() {\r\n\t\tthis.btnClSearch.click();\r\n\t}",
"public Sources clickClearSearch() {\n\t\tWebElement resultPageHeader = commonLibrary.isExistNegative(UIMAP_Sources.resultPageHeader, 10);\n\t\tWebElement clearSearch = commonLibrary.isExistNegative(resultPageHeader, UIMAP_Sources.clearSe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To sync the database. | public void syncDb() {
newsItemRepository.syncDb();
} | [
"public Database syncDb() {\n return new Database(tenant, category, label, null, true);\n }",
"private void syncDatatoDB() {\r\n if(mOperationFromDB == mOperationFromUser) {\r\n if(mOperationFromDB == AliFingerprintUtils.FINGERQUICK_TYPE_DISABLE\r\n || (mOperat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a binning function to allocate values across fixed size bins. Values may be either rounded to bin centres, or truncated to bin floors. | public static <T> Function<T, Double> binning(boolean centreBin, double binSize,
Function<T, Double> binSelector) {
return centreBin?
t -> (((Double)(Math.round(binSelector.apply(t)) / binSize)) * binSize) :
t -> ((Math.floor(binSelector.apply(t) / binSize)) * binSize);
} | [
"public static <T> Function<T, Double> binning(double binSize,\r\n\t\t\tFunction<T, Double> binSelector) {\r\n\r\n\t\treturn binning(false, binSize, binSelector);\r\n\r\n\t}",
"public int alphaBinNum(float[] values) {\n\n /* Check if histogram sampling is possible. */\n if (values == null || values.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Update RecyclerView Log.d(TAG, "onChanged mainTasks: " + mainTasks.size()); Log.d(TAG, "onChanged mainTaskName: " + mainTasks.get(0).getName()); | @Override
public void onChanged(@Nullable List<MainTask> mainTasks) {
adapter.setMainTasks(mainTasks);
} | [
"public void updateView(TaskList taskList){\n recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));\n adapter=new TaskRecyclerAdapter(taskList,getActivity());\n recyclerView.setAdapter(adapter);\n adapter.notifyDataSetChanged();\n }",
"private void updateViews() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sort customer by Stakeholder ID | public void SortCustomer() {
customerArray.sort(Comparator.comparing(Stakeholder::getStHolderId));
} | [
"public void orderById() {\n Collections.sort(customers, new Comparator() {\n\n public int compare(Object o1, Object o2) {\n return ((Customer)o1).getId().compareTo(((Customer)o2).getId());\n }\n });\n\n //avisa que a tabela foi alterada\n fireTableDa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
REPEAT EACH: REPEAT_PERIOD_YEAR UNTIL:END_TYPE_NEVER_ENDS | public void test_repeatEachYear_neverEnds(){
Date now = new Date(114, 4, 1, 18, 31);
Date end = new Date(130, 6, 3, 12, 31);
Date start = new Date(112, 4, 1, 18, 38);
Reminder a = new Reminder("", "", start, end, true, Reminder.END_TYPE_NEVER_ENDS, Reminder.REPEAT_PERIOD_YEAR, 1);
Date nextTime = a.getNe... | [
"public void test_repeatEachYear_iterations_noSchedule(){\n\t\tDate now = new Date(115, 2, 1, 12, 31);\n\t\tDate end = new Date(112, 5, 3, 12, 31);\n\t\tDate start = new Date(112, 4, 1, 18, 38); \n\n\t\tReminder a = new Reminder(\"\", \"\", start, end, true, Reminder.END_TYPE_ITERATIONS, Reminder.REPEAT_PERIOD_YEAR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for movie names. | private List<String> getMovieNames() {
List<String> movieNames = new ArrayList<>();
for (Movie movie: this.movies) {
movieNames.add(movie.getName());
}
return movieNames;
} | [
"String getMovieName();",
"public String getMovieName() {\r\n\t\treturn this.movieName;\r\n\t}",
"public String[] getNames ()\n {\n\treturn playerNames;\n }",
"java.lang.String getMedName();",
"public String getNames();",
"public static List<String> getNames(){\n\t\tsetUpList();\n\t\treturn(noms);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for the InformationScreenController class | public InformationScreenController(MasterViewsController masterViewsController, int displayInfo){
this.masterViewsController = masterViewsController;
this.displayInfo = displayInfo;
} | [
"public InformationPanel() {\n }",
"public Controller() {\n board = new FlightInfoBoard(this);\n }",
"public AbouteScreen()\n {\n super(); \n prepare();\n \n }",
"public InfoSesion() {\n }",
"public InternalInformationPortController() {\r\n\t\t\r\n\t}",
"public INF... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
MUST_USE_RES struct LDKChannelPublicKeys ChannelPublicKeys_new(struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_point_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg); | public static native long ChannelPublicKeys_new(byte[] funding_pubkey_arg, byte[] revocation_basepoint_arg, byte[] payment_point_arg, byte[] delayed_payment_basepoint_arg, byte[] htlc_basepoint_arg); | [
"public static native long TxCreationKeys_new(byte[] per_commitment_point_arg, byte[] revocation_key_arg, byte[] broadcaster_htlc_key_arg, byte[] countersignatory_htlc_key_arg, byte[] broadcaster_delayed_payment_key_arg);",
"public static native long CounterpartyChannelTransactionParameters_new(long pubkeys_arg, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
outside code can add its own hooks | public static void registerExternal(External hooks) { external = hooks; } | [
"abstract void hook(XC_LoadPackage.LoadPackageParam packageParam);",
"private void hookTencentMap() {\n\n }",
"@Test\n public void testHookRun() {\n // TODO: test HookRun\n }",
"protected abstract void beforeImportHook();",
"void hookFunction(Symbol symbol, ReplaceCallback callback);",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Perform action in consideration of current selected element action, type and id | public void doAction() {
switch (selectedElementAction) {
case ACTION_ADD_NEW_ELEMENT:
// open editing panel
boolean actionCanceled = false;
if (selectedElementType.equals(UMLNature.CLASS)) {
String[] options = new String[] {"Classe", "Classe abstraite", "Interface", "Annuler"};
int result = JOptio... | [
"public void doAction()\n {\n selectedAction.doAction();\n }",
"public void toSelectingAction() {\n }",
"public abstract Action selectedAction();",
"void entityActionSelected(Action action);",
"private void doAction() {\n if (doer == null) {\n doer = currentPlayer.getFigure... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AstInequality__TagsAssignment_0" $ANTLR start "rule__AstInequality__TagsAssignment_1_1" ../org.caltoopia.frontend.ui/srcgen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:24172:1: rule__AstInequality__TagsAssignment_1_1 : ( ruleAstTag ) ; | public final void rule__AstInequality__TagsAssignment_1_1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:24176:1: ( ( ruleAstTag ) )
... | [
"public final void rule__AstInequality__TagsAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:24161:1: ( ( ruleAstTag ) )\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete foto from database | public void delete(Foto foto) throws DaoException{
Connection connection = ConnectionPool.getInstance().getConnection();
try (PreparedStatement statement = connection.prepareStatement(DELETE_FOTO)) {
connection.setAutoCommit(false);
statement.setInt(1, foto.getId());
... | [
"private void deleteImage(Image image){\n db.delete(MyOpenerZhe.TABLE_NAME, COL_ID + \" = ?\", new String[]{Long.toString(image.id)});\n }",
"public void deletePicture(PictureFile p) {\n try {\n // 1. get conn\n Connection myConn = getConnection();\n // 2. create ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the 'EBlend Factor' literal with the specified name. | public static EBlendFactor getByName(String name)
{
for (int i = 0; i < VALUES_ARRAY.length; ++i)
{
EBlendFactor result = VALUES_ARRAY[i];
if (result.getName().equals(name))
{
return result;
}
}
return null;
} | [
"public static EBlendFactor get(String literal)\n\t{\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i)\n\t\t{\n\t\t\tEBlendFactor result = VALUES_ARRAY[i];\n\t\t\tif (result.toString().equals(literal))\n\t\t\t{\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public static EBlendFactor get(int v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
tells the currentlyselected view to render | private void renderView() {
System.out.println(this.currentView.render());
} | [
"@Override\n\tpublic void render() {\n\t\tif(selected) {\n\t\t highlightImage.drawCentered((float)getScreenPos().getX(), (float)getScreenPos().getY());\n\t\t}\n\t\tsuper.render();\n\t}",
"public void switchView(View view) {\r\n\t\tthis.currentView = view;\r\n\t\trenderView();\r\n\t}",
"public void displayVie... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Provides a list of the names of the supported message digest algorithms. | public List<String> getSupportedMessageDigestAlgorithms() {
if (supportedMessageDigestAlgorithms == null) {
supportedMessageDigestAlgorithms = new ArrayList<String>();
for (Provider provider : Security.getProviders()) {
log.trace("provider = {}", provider);
for (Provider.Service service : pro... | [
"String getDigestAlgorithm();",
"public String getMessageDigestAlgorithm();",
"public Map getRegisteredEncodingAlgorithms();",
"public List<MessageDigestType> getMessageDigest();",
"public String getDigestMethod()\n\t{\n\t\treturn m_digestMethod;\n\t}",
"AlgorithmReferences getAlgorithms();",
"public st... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the second Document in the DocumentPair. The ordering of Document objects in a DocumentPair is arbitrary. | public Document getDoc2() {
return doc2;
} | [
"public DocumentPair(Document doc1, Document doc2) {\r\n assert ((doc1 != null) && (doc2 != null));\r\n this.doc1 = doc1;\r\n this.doc2 = doc2;\r\n jsDiv = (int) doc1.computeJSDiv(doc2);\r\n sentimentDiff = Math.abs(doc1.getOverallSentiment() - doc2.getOverallSentiment());\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'field881' field. doc for field881 | public java.lang.CharSequence getField881() {
return field881;
} | [
"public java.lang.CharSequence getField881() {\n return field881;\n }",
"java.lang.String getField1164();",
"public java.lang.CharSequence getField882() {\n return field882;\n }",
"public java.lang.CharSequence getField889() {\n return field889;\n }",
"public java.lang.CharSequence getField8... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Name : decide_type Input : Pass String variable as prod_name_str Description : Display all products items according to product name. | private int decide_type(String prod_name_str) {
// initialize int type variable
int type_array = -1;
/* check condition to display product items */
if(prod_name_str.equals("ONE MODULAR CONCEALED METAL BOX")
|| prod_name_str.equals("ONE MODULAR CONCEALED BOX")
|| prod_name... | [
"java.lang.String getProductType();",
"void setProductType(java.lang.String productType);",
"public ElecProduct displayProduct(ElecProduct p) {\r\n\t\tsetEditableOff();\r\n\t\t\r\n\t\tif(p.getProd_type().equals(\"CONSOLE\"))\r\n\t\t{\r\n\t\t\t\r\n\t\t\tlabel1.setText(\" Storage Size:\");\r\n\t\t\tlabel2.setText... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines if the set is generally valid to be played in tournament format. | public boolean isValidInStandardTournamentFormat() {
return this.validFormats.contains(TournamentFormat.STANDARD);
} | [
"public boolean verifyTournamentValidity() {\n\t\tif(this.numberOfTeamsEnrolled != NUMBER_OF_TEAMS) {\n\t\t\treturn false;\n\t\t}\n\t\tif(this.numberOfStadiums == 0) {\n\t\t\treturn false;\n\t\t}\n\t\tfor(int i = 0; i<this.numberOfTeamsEnrolled; i++) {\n\t\t\tif(this.teamsEnrolledArray[i].verifyTeamValidity(minimum... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Copies the 'immutable' DataTracks.xml that came with the installation into the working directory where it can be manipulated by the user. | private void revertSettings() {
BufferedReader inputStream=null;
PrintWriter outputStream=null;
File outfile=getDataConfigurationFile();
try {
inputStream=new BufferedReader(new InputStreamReader(this.getClass().getResourceAsStream("/motiflab/engine/datasource/DataTracks.xml... | [
"public File getDataConfigurationFile() {\n String filename=engine.getMotifLabDirectory()+File.separator+\"DataTracks.xml\";\n return new File(filename);\n }",
"private void rewriteXmlSource(){\n //Log.i(LOG_TAG, \"Updating radios.xml....\");\n String fileName = \"radios.xml\";\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Abator for iBATIS. This method sets the value of the database column MI408.FREEUSE1 | public void setFreeuse1(String freeuse1) {
this.freeuse1 = freeuse1 == null ? null : freeuse1.trim();
} | [
"public void setFreeuse1(String freeuse1) {\n\t\tthis.freeuse1 = freeuse1;\n\t}",
"public void setFreeuse1(String freeuse1) {\n\t\tthis.freeuse1 = freeuse1 == null ? null : freeuse1.trim();\n\t}",
"public String getFreeuse1() {\n return freeuse1;\n }",
"public String getFreeuse1() {\n\t\treturn free... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the Policy field. | public void setPolicy(entity.Policy value); | [
"public void setPolicy(PO newPolicy);",
"public void setPolicy(Policy policy) {\n this.policy = policy;\n \n \n }",
"public void setPolicyId(int PolicyId);",
"public void setPolicy(String policy) {\n this.policy = policy;\n }",
"public void setPolicy(com.vmware.converter.DV... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AtomicDomainSpecificEvent__Group__0__Impl" $ANTLR start "rule__AtomicDomainSpecificEvent__Group__1" ../org.gemoc.gel.xtext.ui/srcgen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:2437:1: rule__AtomicDomainSpecificEvent__Group__1 : rule__AtomicDomainSpecificEvent__Group__1__Impl rule__Ato... | public final void rule__AtomicDomainSpecificEvent__Group__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:2441:1: ( rule__AtomicDomainSpecificEvent__Group... | [
"public final void rule__AtomicDomainSpecificEvent__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:2410:1: ( rule__AtomicDomainSpecific... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the output exchange item at exchangeItemIndex position. | public IInputExchangeItem getInputExchangeItem(int exchangeItemIndex); | [
"public IOutputExchangeItem getOutputExchangeItem(int exchangeItemIndex);",
"public IOutputExchangeItem getOutputExchangeItem( int outputExchangeItemIndex ) {\n if (outputExchangeItemIndex == 0) {\n return ddDataOutputEI;\n }\n return null;\n }",
"public IInputExchangeItem get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if any player is in stand mode. | public boolean mustDealerPlay() {
for (Player player : table.getPlayers()) {
if (player.getStatus() == GamblerStatus.STAND)
return true;
}
return false;
} | [
"boolean isInStandbyMode();",
"public void stand()\r\n\t{\r\n\t\tstand = true;\r\n\t}",
"private void checkIfGameCanStart(){\n\t\tif(playerCount == joinedPlayers)\n\t\t\tsendGameStartMsg();\n\t}",
"private void checkPlayerCondition()\n\t{\n\t\tif (playerExists() && PlayerAccess.getPlayer().isInExit())\n\t\t{\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
we can't set up the canvas immediately so finish that here | public void setupCanvas() {
canvas.createBufferStrategy(2);
// async canvas updater thread for running faster than real time
if(!APBioSimulation.REAL_TIME) {
new Thread(() -> {
long lastTime = System.currentTimeMillis(),
frameRate = 15;
while(true) {
// step
if(simulationRunni... | [
"abstract protected void initCanvas();",
"public void initCanvas() {\n Canvas canvas = getHolder().lockCanvas();\n\n\n canvas.drawColor(getResources().getColor(R.color.cardTable));\n\n// deck.loadSolitare(width / 2, height / 2 - height * 0.30f);\n if (isSolitaireLoaded) drawPiles(canva... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Draws the zoom buttons: zoomin, zoomout, and reset. | private void drawZoomButtons(Graphics g) {
g.setColor(Color.lightGray);
//reset
g.drawOval(10, this.getHeight() - 75, 15, 15);
//zoom-in
g.drawRect(10, this.getHeight() - 50, 15, 15);
g.drawLine(14, this.getHeight() - 42, 21, this.getHeight() - 42);
g.drawLine(18,... | [
"private void initialiseZoomButtons()\n\t{\n\t\tfinal ImageView zoomIn = (ImageView) findViewById(R.id.maps_zoom_in);\n\t\tfinal ImageView zoomOut = (ImageView) findViewById(R.id.maps_zoom_out);\n\n\t\tzoomIn.setOnTouchListener(new View.OnTouchListener() {\n\n\t\t\t@Override\n\t\t\tpublic boolean onTouch(View v, Mo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return true if record consumer was not set to read all table events and the DDL op has been blacklisted for this table | private boolean isDDLOperationBlacklisted(boolean readAllTables, SourceTable sourceTable, DDLOperation.Type op) {
return !readAllTables && sourceTable.getDdlBlacklist().contains(op);
} | [
"public boolean hasRecordsAlwaysDeletable()\n {\n return this._has_recordsAlwaysDeletable;\n }",
"public boolean dataDefinitionIgnoredInTransactions() throws SQLException {\n return false;\n }",
"protected boolean isNeedDBAccess() {\r\n\r\n return DeviceList.getDeviceStatus(device.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes all bindings from the keymap. | public void removeBindings(); | [
"public void removeOwnKeyBindings() {\n getPolymerElement().removeOwnKeyBindings();\n }",
"public void removeKeyStrokeBinding(KeyStroke keys);",
"public void clearBindings() throws UnifiedScriptException\n {\n try\n {\n for (String name : bindings.keySet())\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |