input
stringlengths
10
828
output
stringlengths
5
107
public string recover data user found user user dao find by email user get email if found user null faces util add error message user email not registered return null faces util add info message user data sent by email successfully email sender send user data email found user return main
recover users data by e mail
public string load register page reset return register user
loads the register page
public string load recover data page reset return recover user data
loads the recover data page
public string get passwdemail return passwdemail
returns the passwdemail
public void set passwdemail string passwdemail this passwdemail passwdemail
set the passwdemail
public string get passwdname return passwdname
returns the passwdname
public void set passwdname string passwdname this passwdname passwdname
set the passwdname
public string get loginid return loginid
returns the loginid
public void set loginid string loginid this loginid loginid
set the loginid
public string get regpasswd return regpasswd
returns the regpasswd
public void set regpasswd string regpasswd this regpasswd regpasswd
set the regpasswd
public string get regname return regname
returns the regname
public void set regname string regname this regname regname
set the regname
public string get regemail return regemail
returns the regemail
public void set regemail string regemail this regemail regemail
set the regemail
public adapter create simple project adapter return null
creates a new adapter for an object of class
public adapter create multi project adapter return null
creates a new adapter for an object of class
public adapter create project releation adapter return null
creates a new adapter for an object of class
public adapter create parent dependency adapter return null
creates a new adapter for an object of class
public adapter create project container adapter return null
creates a new adapter for an object of class
public mmodel convert ecore uri to mmodel uri ecore file uri final epackage epackage ecore xmi loader load ecore file uri return convert epackage to mmodel epackage
convertes the ecore model specified by the given uri into an
private edata type create ecore data type string type name final ecore factory efactory ecore factory e instance final edata type edatatype efactory create edata type edatatype set name type name edatatype set instance class name type name return edatatype
creates an ecore data type with the given type name
protected mclassifier convert non nested type eclassifier etype log info convert non nested type type etype non nls 1 if etype null return convert non nested type this ecore std type void return mclassifier convert etype non nested
converts the given
public void add service content id bearer services add bearer
adds a service to this scope
public int size return binary length
returns the size of the construct
public void set size int size this size size if bits length size bits set length size bits trim to size else if bits length size bits replace 0 size 1 string utils right pad bits to string size 0
set a new size for the result
public void set system type system type type this type type
set the epg system type dab or drm
public void set service id content id service id this service id service id
sets the id of the service
public boolean get int index return bits char at index 1
returns the value of the bit with the specified index
public void set created readable instant created this created created
sets the time the schedule was created
public broadcast flag set broadcast flag broadcast flag flag return broadcast flag
sets the broadcast flag
public void set ca catype ca this ca ca
sets the conditional access ca type
public attribute get attribute attribute tag tag attribute result null for attribute attribute attributes if attribute get tag tag result attribute break return result
returns a specific attribute
public void add genre genre genre genres add genre
adds a genre to the programme
public boolean has attribute attribute tag tag return get attribute tag null
returns whether a specific attribute is defined for this element
public void clear genres genres clear
clears all genre from the programme
public void add time time time times add time
adds a time to the location
public void add relative time relative time relative time relative times add relative time
adds a relative time to the location
public void add bearer bearer bearer bearers add bearer
adds a bearer to the location
public boolean has children element tag tag return get children tag size 0
returns whether any elements of the specified type are children to this element
public void remove genre genre genre genres remove genre
removes a genre from the programme
public void add simulcast simulcast simulcast simulcasts add simulcast
add a simulcast to this service
public void set cdata cdata cdata this cdata cdata
set this elements cdata
public void remove simulcast simulcast simulcast simulcasts remove simulcast
remove a simulcast from this service
public void set id crid id this id id
sets the programme content reference id crid
public void set format service format format this format format
set the format of the service either audio or a
public void set expiry time readable instant expiry time this expiry time expiry time
sets the link expiry time
public void remove link link link links remove link
remove a link from this service
public void set keywords keywords keywords this keywords keywords
set the keywords associated with this programme
public void add location location location enforce the restriction for relative times to programme events only if location get relative times size 0 throw new illegal argument exception cannot use a location with relative times for a programme locations add location
add a location to this programme
public void remove location location location locations remove location
remove a location from this programme
public void clear locations locations clear
clear all locations from this programme
public void add programme group programme group group programme groups add group
add a programme group
public void add short description string short description short descriptions add new short description short description
adds a short description
public void add short description short description short description short descriptions add short description
adds a short description
public void set originator string originator if originator length 128 throw new illegal argument exception originator must be less than or equal to 128 characters in length this originator originator
sets the originator for this schedule
public void remove short description short description short description short descriptions remove short description
removes a short description
public void clear short descriptions short descriptions clear
clears all short descriptions
public void add long description string long description long descriptions add new long description long description
adds a long description
public void add membership membership membership memberships add membership
add a membership to this programme
public void add location location location locations add location
add a location to this programme
public void add long description long description long description long descriptions add long description
adds a long description
public void add programme programme programme programmes add programme
add a programme to the schedule
public void remove long description long description long description long descriptions remove long description
removes a long description
public void remove membership membership membership memberships remove membership
removes a membership from this programme
public void remove programme programme programme programmes remove programme
remove a programme from the schedule
public void clear long descriptions long descriptions clear
clears all long descriptions
public void clear memberships memberships clear
clears all memberships from this programme
public keywords add keyword string keyword keywords add keyword return this
add a keyword this should be in the language specified
public void add event programme event event events add event
adds a programme event to the programme
public void remove service service service services remove service
remove a service from this ensemble
public void remove frequency frequency frequency frequencies remove frequency
remove a frequency from this ensemble
public void add short name string name add short name new short name name
adds a short name to this group
public void set xpad application type string xpad this xpad xpad
sets the xpad application type
public void add short name short name name short names add name
adds a short name to this group
public void add medium name string name add medium name new medium name name
adds a medium name to this group
public void add medium name medium name name medium names add name
adds a medium name to this group
public void set short id int value this short id value
sets the value of the short id property
public void add long name string name add long name new long name name
adds a long name to this group
public void add long name long name name long names add name
adds a long name to this group
public void set frequency int frequency if frequency 0 throw new illegal argument exception frequency must be greater than zero this frequency frequency
set the frequency value in k hz
public void set short id short crid short id this short id short id
sets the short id
public void set crid crid crid this crid crid
sets the content reference id crid
public void set number of items int num of items this num of items num of items
sets the number of items in the group
private element build keywords keywords keywords element programme element document doc element keywords element doc create element keywords keywords element set attribute ns xml namespace xml lang keywords get language string words keywords get keywords to string words string utils remove start words words string utils remove end words cdatasection data doc create cdatasection words keywords element append child data return keywords element
builds the keywords element
private element build link link link element programme element document doc element link element doc create element link link element set attribute url link get url to string if link get mime type null link element set attribute mime type link get mime type if link get description null link element set attribute description link get description if link get language null link element set attribute xml lang link get language if link get expiry time null link element set attribute expiry time link get expiry time to string return link element
builds the link element
private element build keywords keywords keywords element programme element document doc element keywords element doc create element keywords keywords element set attribute ns xml namespace lang keywords get language string words keywords to string words string utils remove start words words string utils remove end words cdatasection data doc create cdatasection words keywords element append child data return keywords element
builds the keywords element
private element build link link link element programme element document doc element link element doc create element link link element set attribute url link get url to string if link get mime type null link element set attribute mime type link get mime type if link get description null link element set attribute description link get description if link get language null link element set attribute ns xml namespace lang link get language if link get expiry time null link element set attribute expiry time link get expiry time to string return link element
builds the link element
private element build membership membership membership element programme element document doc element member of element doc create element member of member of element set attribute short id membership get short id if membership get crid null member of element set attribute id membership get crid to string if membership get index 0 member of element set attribute short id membership get index return member of element
builds the member of element
private element build scope scope scope element parent document doc element scope element doc create element scope scope element set attribute start time scope get start time to string scope element set attribute stop time scope get stop time to string for content id id scope get services element service element doc create element service scope service element set attribute id id to string scope element append child service element return scope element
builds the scope element
public string get message string key string message null try message get message key null new locale no catch no such message exception e return null return message
get the message
public string get next url string next url bundle get message url url no url no url no 1 return next url
find the next url from the property file urls
public void change to failure build status complete build status throws interrupted exception change panels complete build status for int green component 254 green component 0 green component color color new color 254 green component green component 0 container container this get content pane container set background color this set visible true thread sleep 10
fade the frame from green to red
public boolean get project build status string success string string failure string get the contents of the url return get project build status success string failure string 0 6000 urlreader url reader new urlreader this url string url contents url reader get url contents if url contents null compare the placement of success and failure int success placement url contents index of success string int failure placement url contents index of failure string if success placement failure placement success placement 1 failure placement 1 return true else return false else we could not read the specified url return false
get the contents of the specified url
public void change to success build status complete build status throws interrupted exception change panels complete build status for int red component 254 red component 0 red component color color new color red component 254 red component 0 container container this get content pane container set background color this set visible true thread sleep 10
fade the frame from red to green
public jpanel error panel return new jpanel
create an error panel for internal errors
public boolean is play random now boolean bol false string random nr system current time millis int nr to play integer parse int random nr substring random nr length 1 random nr length if nr to play 7 nr to play 3 nr to play 1 return true return bol
plays a random file now and then
public list clean code comitters list last check in code users list iterator it last check in code users list iterator list clean list new array list while it has next string user id it next to string iterator it clean clean list iterator boolean add new user id true while it clean has next if user id equals it clean next to string add new user id false if add new user id true clean list add user id return clean list
should be moved to a nother class perhaps
private void success build status complete build status throws interrupted exception try play the success sound sound player play success sound logger info success catch exception e logger error e change to success this frame change to success complete build status
change the frame to success and play a sound
public void test extractor entry ends with er entry value entry values entry value factory get entry value list character extractor extractor new writing sheet format new character extractor entry values set pairs extractor get character pairs assert equals 5 pairs size
test for bug 1528632