input
stringlengths
10
828
output
stringlengths
5
107
public void set sample number int sample number this sample number sample number
setter of the number of sample
public int get sample number return sample number
getter of the amount of samples
public void set receipt date date receipt date this receipt date receipt date
setter of the date of receipt of the batch
public date get receipt date return receipt date
getter of the date receipt of the batch
public int get priority level return priority level
getter of the priority level of the batch
public rights get right return this right
getter of the users rights
public void set priority level int priority level this priority level priority level
setter of the priority level
public void set right rights right this right right
setter of the users rights
public void edit user string name string firstname string password bouml preserved body begin 0001 ff0 e this set name name this set first name firstname this set password password bouml preserved body end 0001 ff0 e
permits to edit a user
public customer get name customer return name customer
here is the getter of the customers name
public float get tva return tva
here is the getter of the tva
public void set name customer customer name customer this name customer name customer
this is the setter of the customers name
public void set price customer c iterator order it c get list order iterator while it has next this price it next get price this price this price this tva
this is the setter of the price
public void set tva float tva this tva tva
this is the setter of the tva
public void validate bouml preserved body begin 00024 a0 e this validated true bouml preserved body end 00024 a0 e
method used when a result needs to be validated
public string get name specie return name specie
getter of the name of the species
public void set name specie string name specie this name specie name specie
sette rof the name of the species
public internet services get it return it
this is the getter of the information about the internet services
public void set list order vector order list order this list order list order
this is the setter of the list of orders
private boolean clean locked objects cal davtransaction transaction locked object lo boolean temporary if lo children is empty if lo owner is empty if temporary lo remove temp locked object else lo remove locked object return true else return false else boolean can delete true for locked object locked lo children if clean locked objects transaction locked temporary can delete false if can delete if lo owner null if temporary lo remove temp locked object else lo remove locked object return true else return false else return false
deletes unused locked objects and resets the counter
protected string get etag stored object so string builder sb new string builder sb append if so null so is resource sb append so get resource length sb append sb append so get last modified get time else sb append 0000 0000000000000000 sb append return sb to string
get the etag associated with a file
protected string get etag vaction va string builder sb new string builder sb append if va null va has last modified sb append va to string length sb append sb append va get last modified get time in millis else sb append 0000 0000000000000000 sb append return sb to string
get the etag associated with a file
protected string get ctag stored object so string builder sb new string builder if so null so is resource sb append so get resource length sb append sb append so get last modified get time else sb append 0000 0000000000000000 return sb to string
get the ctag associated with a file
public void do work try boolean use pvengine exe init sistem povworker pov w new povworker use pvengine exe attenzione get absolute path quando ci sono directory con spazi separa es program file file xls capta solamente file file xls string abs path path dir get absolute path string ini path new file working dir get absolute path pw res pov w do work pw req abs path povray path ini path catch exception e set exception e
perform the actual work of this task
public povwork result get work result if pw res null log error rendering work not accomplisced some errors has accorred return pw res
get the result of task execution
public void verbinden throws port in use exception unsupported comm operation exception too many listeners exception if current null current get name equals port accessor name baud rate current get baud rate return if current null current close if port ids is empty return port ausw hlen und mit diesem reader verbinden comm port identifier cpi port ids get port name current serial port cpi open port accessor name port time out current set serial port params baud rate databits stopbits parity current add event listener this
verbindet mit der schnittstelle
private jframe gib gui if hauptfenster null hauptfenster new jframe hauptfenster set default close operation jframe exit on close hauptfenster set preferred size new dimension 500 300 hauptfenster set jmenu bar get jmenu bar hauptfenster set size 500 300 hauptfenster set content pane get jcontent pane hauptfenster set title gps track return hauptfenster
this method initializes j frame
private jpanel get jcontent pane if j content pane null j content pane new jpanel j content pane set layout new border layout j content pane add get jscroll pane get jscroll pane get name return j content pane
this method initializes j content pane
private jscroll pane get jscroll pane if j scroll pane null j scroll pane new jscroll pane j scroll pane set viewport view get ausgabefeld return j scroll pane
this method initializes j scroll pane
private jtext area get ausgabefeld if ausgabefeld null ausgabefeld new jtext area return ausgabefeld
this method initializes ausgabefeld
private jbutton get invert button if invert button null invert button new jbutton invert button set text invertieren invert button add action listener new java awt event action listener public void action performed java awt event action event e try matrix a new matrix a read matrix table matrix table string message a invertieren matrix table null matrix pane set viewport view write matrix table a status set text message a null catch exception e0 status set text e0 get message return invert button
this method initializes invert button
private jmenu bar get jmenu bar if j menu bar null j menu bar new jmenu bar j menu bar add get file menu j menu bar add get track menu j menu bar add get help menu return j menu bar
this method initializes j menu bar
private jpanel get buttons if buttons null grid layout grid layout new grid layout grid layout set rows 1 grid layout set hgap 10 grid layout set columns 4 buttons new jpanel buttons set layout grid layout buttons add get new null buttons add get open button null buttons add get save button null buttons add get invert button null return buttons
this method initializes buttons
private jpanel get new if new null kreuz new jlabel kreuz set text x kreuz set horizontal alignment swing constants center grid layout grid layout1 new grid layout grid layout1 set rows 1 grid layout1 set hgap 5 new new jpanel new set layout grid layout1 new add get new button null new add get dimension null return new
this method initializes new
private jpanel get dimension if dimension null grid layout grid layout2 new grid layout grid layout2 set rows 1 dimension new jpanel dimension set layout grid layout2 dimension add get dimension m null dimension add kreuz null dimension add get dimension n null return dimension
this method initializes dimension
private jtext field get dimension m if dimension m null dimension m new jtext field dimension m set text 3 dimension m set horizontal alignment jtext field center dimension m set name dimension return dimension m
this method initializes dimension m
private jmenu get track menu if track menu null track menu new jmenu track menu set text aufzeichnung track menu add get start menu item track menu add get end menu item return track menu
this method initializes track menu
public double det if this gib anzahl spalten this gib anzahl zeilen throw new runtime exception fehler keine quadratische matrix if this gib anzahl zeilen 0 return 1 else if this gib anzahl zeilen 1 return this matrix 0 0 else double det 0 for int j 0 j this gib anzahl zeilen j det math pow 1 j this matrix 0 j this streichmatrix 0 j det return det
determinante der matrix via laplace entwicklung nach der ersten zeile
private jtext field get dimension n if dimension n null dimension n new jtext field dimension n set horizontal alignment jtext field center dimension n set text 3 return dimension n
this method initializes dimension n
private jscroll pane get matrix pane if matrix pane null matrix pane new jscroll pane matrix pane set border border factory create empty border 10 10 10 10 return matrix pane
this method initializes matrix pane
private jtable write matrix table matrix a if matrix table null matrix table new jtable a gib anzahl zeilen a gib anzahl spalten matrix table set table header null decimal format df new decimal format 0 int anzahl zeilen a gib anzahl zeilen int anzahl spalten a gib anzahl spalten for int i 0 i anzahl zeilen i for int j 0 j anzahl spalten j matrix table set value at df format a matrix i j equals 0 0 df format a matrix i j i j return matrix table
this method initializes matrix table
public void schreibe matrix file matrix file throws ioexception string pfad matrix file get path buffered writer ausgabe new buffered writer new file writer pfad ausgabe write matrix r n ausgabe write zeilen this gib anzahl zeilen r n ausgabe write spalten this gib anzahl spalten r n ausgabe write werte for int i 0 i zeilen i for int j 0 j spalten j double zahl math round matrix i j 1000 ausgabe write string value of zahl 1000 ausgabe write ausgabe close
schreibt matrix in datei
private void initialize this set size 600 240 this set content pane get main pane this set title matrixinvertierung
this method initializes this
private jmenu item get start menu item if start menu item null start menu item new jmenu item start menu item set name start menu item set text starten start menu item add action listener new java awt event action listener public void action performed java awt event action event e try start catch ioexception e2 e2 print stack trace catch too many listeners exception e2 e2 print stack trace catch exception e2 e2 print stack trace start menu item set enabled false end menu item set enabled true return start menu item
this method initializes start menu item
public void connect throws port in use exception unsupported comm operation exception too many listeners exception if current null current get name equals port accessor name baud rate current get baud rate return if current null current close if port ids is empty return port ausw hlen und mit diesem reader verbinden comm port identifier cpi port ids get port name current serial port cpi open port accessor name port time out current set serial port params baud rate databits stopbits parity current add event listener this
verbindet mit der schnittstelle
private jmenu item get start button if start button null start button new jmenu item start button set name start button set text starten start button add action listener new java awt event action listener public void action performed java awt event action event e start start button set enabled false end button set enabled true return start button
this method initializes start button
private jmenu item get end button if end button null end button new jmenu item end button set text beenden end button set enabled false end button add action listener new java awt event action listener jframe save dialog public void action performed java awt event action event e stop start button set enabled true end button set enabled false try jfile chooser chooser new jfile chooser int return val chooser show save dialog save dialog if return val jfile chooser approve option track als kmlspeichern chooser get selected file catch exception e0 e0 print stack trace return end button
this method initializes end button
private jmenu item get about menu item if about menu item null about menu item new jmenu item about menu item set text ber about menu item add action listener new action listener public void action performed action event e jdialog about dialog get about dialog about dialog pack point loc gib gui get location loc translate 20 20 about dialog set location loc about dialog set visible true return about menu item
this method initializes j menu item
private jtext pane get ausgabefeld if ausgabefeld null ausgabefeld new jtext pane return ausgabefeld
this method initializes ausgabefeld
private jmenu get track menu if track menu null track menu new jmenu track menu set text aufzeichnung track menu add get start button track menu add get end button return track menu
this method initializes track menu
private jframe get jframe if hauptfenster null hauptfenster new jframe hauptfenster set default close operation jframe exit on close hauptfenster set jmenu bar get jjmenu bar hauptfenster set size 300 200 hauptfenster set content pane get jcontent pane hauptfenster set title gps track return hauptfenster
this method initializes j frame
private jdialog get about dialog if about dialog null about dialog new jdialog gib gui true about dialog set title ber dieses programm about dialog set size new dimension 254 178 about dialog set content pane get about content pane return about dialog
this method initializes about dialog
private jpanel get jcontent pane if j content pane null j content pane new jpanel j content pane set layout new border layout j content pane add get ausgabefeld border layout center return j content pane
this method initializes j content pane
private jpanel get buttons if buttons null grid layout grid layout new grid layout grid layout set rows 3 grid layout set columns 1 buttons new jpanel buttons set border border factory create empty border 30 30 30 30 buttons set layout grid layout buttons add get einlese button null buttons add get berechnungs und ausgabe button null buttons add get vierter mann button null return buttons
this method initializes buttons
private void initialize this set size 533 264 this set content pane get jcontent pane this set title projekt 3
this method initializes this
private jpanel get jcontent pane if j content pane null status new jlabel status set text herzlich willkommen im programm j content pane new jpanel j content pane set layout new border layout j content pane add get buttons border layout center j content pane add status border layout south return j content pane
this method initializes j content pane
private jdialog get about dialog if about dialog null about dialog new jdialog get jframe true about dialog set title ber dieses programm about dialog set size new dimension 254 178 about dialog set content pane get about content pane return about dialog
this method initializes about dialog
private jmenu item get cut menu item if cut menu item null cut menu item new jmenu item cut menu item set text ausschneiden cut menu item set accelerator key stroke get key stroke key event vk x event ctrl mask true cut menu item add action listener new java awt event action listener public void action performed java awt event action event e ausgabefeld get selected text return cut menu item
this method initializes j menu item
public void inc hop throws illegal action exception this hopcount new int token this hopcount int value 1 update rreqtoken
increments the hopcount value
public void inc hop throws illegal action exception int token hop count int token rreq token get hopcount rreq token merge rreq token new record token new string hopcount new token new int token hop count int value 1
increments the hopcount value
public void save data object data if data null data equals old data set data data old data data if get parent instanceof data sheet data sheet get parent update screen this
saves the data of the data control
private void check column widths int count headers size for int i 0 i count i column header header column header headers element at i if header given width 0 reset column width i
check column widths
public int get paint end idx return paint end idx
get paint end idx
public gadget cell get selected cell return panel get selected cell
get selected cell
private void check column widths int count headers size 1 for int i 0 i count i mccolumn header header mccolumn header headers element at i if header given width 0 reset column width i
check column widths
public void set cell gadget int row index int column index gadget gadget synchronized get tree lock ensure row count row index 1 panel replace cell gadget row index column index gadget
set cell gadget
public dimension get scrolled preferred size return listgrid get preferred size listgrid get pref rows
get scrolled preferred size
protected void remove gadget gadget int i synchronized get tree lock super remove get gadget i i
removes a gadget
public int get top index return top index
get top index
public dimension get minimum size dimension min get outer preferred size dimension scrolled size get scrolled minimum size min width scrolled size width min height scrolled size height return min
gets the minimum size
public int get process definition version return process definition version
getter for property process definition version
public void set activity java lang string activity this activity activity
setter for property activity
public void set to activity java lang string to activity this to activity to activity
setter for property to activity
public list get activities return activities
getter for property activities
public void set xml document java lang string xml document this xml document xml document
setter for property xml document
public void set out transitions java util list out transitions this out transitions out transitions
setter for property out transitions
public void sort collections sort this comparator
sorts the items with the current sort order and the current sort field
private string get category string category string cat category to lower case if cat contains sumotorrent category videos return tsconstants category movies else if cat contains sumotorrent category applications return tsconstants category software else if cat contains sumotorrent category series return tsconstants category tv else return cat
get the general category for the given sumo torrent category designation
public void sort tssort field sort field set sort field sort field this sort
sorts the items according the specified sort field and current sort
public void sort tssort field sort field tssort order sort order set sort field sort field set sort order sort order this sort
sorts the items according to the specified sort field and sort order
private string get category string category string cat category to lower case if cat contains tsconstants category movies return tsconstants category movies else if cat contains btmon category audio return tsconstants category music else if cat contains btmon category applications return tsconstants category software else if cat contains tsconstants category games return tsconstants category games else return tsconstants category other
get the general category for the given bit torrent monster category designation
private url encode url string url throws malformed urlexception unsupported encoding exception int idx url last index of string head url substring 0 idx 1 string tail url substring idx 1 return new url head urlencoder encode tail utf 8
encodes the supplied url string so that it is a legal url
public void reverse sort order if sort order tssort order ascending sort order tssort order descending else sort order tssort order ascending
reverses the current sort order
private void add to calendar calendar cal int time string unit if unit equals y cal add calendar year time else if unit equals mon cal add calendar month time else if unit equals d cal add calendar day of month time else if unit contains w cal add calendar day of month time 7
add the given time with specified units to the given calendar object
private string get category string category string cat category to lower case if cat contains btjunkie category audio return tsconstants category music else if cat contains btjunkie category video return tsconstants category movies else return cat
get the general category for the given btjunkie category name
public void set sort order tssort order sort order this sort order sort order
set the sort order
public tssort order get sort order return sort order
gets the current sort order
public void clear all search results all results clear books results clear games results clear movies results clear music results clear pictures results clear software results clear tv results clear other results clear
clear all search results
public void perform search string query reinitialize the search in case this object is being reused results count 0 terminate search false
all classes that extend this class are required to override this method
public void set sort field tssort field sort field this sort field sort field switch sort field case date comparator date comparator break case name comparator name comparator break case size comparator size comparator break case peers comparator peers comparator break case seeds comparator seeds comparator break case engine comparator engine comparator break
set the field on which to sort
public void sort all search results all results sort books results sort games results sort movies results sort music results sort pictures results sort software results sort tv results sort other results sort
sort all search results with the current sort field and sort order
public tssort field get sort field return sort field
get the currently set field on which to sort
public tssearch results get search results for category string category if category equals tsconstants category all return all results if category equals tsconstants category books return books results if category equals tsconstants category games return games results if category equals tsconstants category movies return movies results if category equals tsconstants category music return music results if category equals tsconstants category pictures return pictures results if category equals tsconstants category software return software results if category equals tsconstants category tv return tv results if category equals tsconstants category other return other results return null
get the search results corresponding to the specified category
protected void show regular expression match matcher m system out println system out println match debug match count system out println group count m group count for int i 1 i m group count i system out println group i m group i system out flush
show the contents of a regular expression match
public tssearch results get all results return all results
get all torrent search results
public void clear super clear sort field tssort field seeds sort order tssort order descending
invokes the superclass clear method but also resets the sort field to
public tssearch results get books results return books results
get book category torrent search results
public tssearch results get games results return games results
get games category torrent search results
public tssearch results get movies results return movies results
get movies category torrent search results
public void unload throws plugin exception if swt instance null swt instance remove views uiswtinstance view main viewid
unload the plugin