query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Specifies whether the user in the user pool is enabled.
public User withEnabled(Boolean enabled) { setEnabled(enabled); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isEnabledByUser() {\n return mEnabledByUser;\n }", "@Override\n public boolean isEnabled() {\n return user.hasBeenActivated;\n }", "public void setEnabled(Boolean value) { this.myEnabled = value.booleanValue(); }", "@ApiModelProperty(value = \"User is enabled or ...
[ "0.6775098", "0.63565594", "0.6331958", "0.6313802", "0.63045305", "0.6209358", "0.6188251", "0.6127331", "0.612362", "0.60765254", "0.6029914", "0.60182935", "0.5979081", "0.59612423", "0.59327596", "0.59109956", "0.5895865", "0.5895865", "0.5816808", "0.5816808", "0.5815776...
0.0
-1
Specifies whether the user in the user pool is enabled.
public Boolean isEnabled() { return this.enabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isEnabledByUser() {\n return mEnabledByUser;\n }", "@Override\n public boolean isEnabled() {\n return user.hasBeenActivated;\n }", "public void setEnabled(Boolean value) { this.myEnabled = value.booleanValue(); }", "@ApiModelProperty(value = \"User is enabled or ...
[ "0.6775098", "0.63565594", "0.6331958", "0.6313802", "0.63045305", "0.6209358", "0.6188251", "0.6127331", "0.612362", "0.60765254", "0.6029914", "0.60182935", "0.5979081", "0.59612423", "0.59327596", "0.59109956", "0.5895865", "0.5895865", "0.5816808", "0.5816808", "0.5815776...
0.0
-1
The first name, or given name, of the user.
public void setFirstName(String firstName) { this.firstName = firstName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getGivenName() {\n\t\treturn user.getUserInfo().getGivenName();\n\t}", "public java.lang.String getUserFirstName() {\r\n return userFirstName;\r\n }", "java.lang.String getFirstName();", "java.lang.String getFirstName();", "public String getGoogleUserFirstName(){\n ...
[ "0.789419", "0.76937485", "0.7590751", "0.7590751", "0.75394845", "0.7456505", "0.73016965", "0.72258896", "0.72258896", "0.72258896", "0.7212932", "0.7200413", "0.71796566", "0.71727985", "0.71717745", "0.71543664", "0.7140811", "0.7102241", "0.7069955", "0.705405", "0.70456...
0.0
-1
The first name, or given name, of the user.
public String getFirstName() { return this.firstName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getGivenName() {\n\t\treturn user.getUserInfo().getGivenName();\n\t}", "public java.lang.String getUserFirstName() {\r\n return userFirstName;\r\n }", "java.lang.String getFirstName();", "java.lang.String getFirstName();", "public String getGoogleUserFirstName(){\n ...
[ "0.78938997", "0.769339", "0.7590854", "0.7590854", "0.75391686", "0.7456368", "0.730161", "0.72260636", "0.72260636", "0.72260636", "0.72125626", "0.7200455", "0.7179324", "0.7172308", "0.7171259", "0.71541095", "0.7140512", "0.71018577", "0.7069635", "0.7053675", "0.7046186...
0.0
-1
The first name, or given name, of the user.
public User withFirstName(String firstName) { setFirstName(firstName); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getGivenName() {\n\t\treturn user.getUserInfo().getGivenName();\n\t}", "public java.lang.String getUserFirstName() {\r\n return userFirstName;\r\n }", "java.lang.String getFirstName();", "java.lang.String getFirstName();", "public String getGoogleUserFirstName(){\n ...
[ "0.78938997", "0.769339", "0.7590854", "0.7590854", "0.75391686", "0.7456368", "0.730161", "0.72260636", "0.72260636", "0.72260636", "0.72125626", "0.7200455", "0.7179324", "0.7172308", "0.7171259", "0.71541095", "0.7140512", "0.71018577", "0.7069635", "0.7053675", "0.7046186...
0.0
-1
The last name, or surname, of the user.
public void setLastName(String lastName) { this.lastName = lastName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getUserLastName() {\r\n return userLastName;\r\n }", "public String getGoogleUserLastName() {\n return (String) attributes.get(GOOGLE_USER_LAST_NAME);\n }", "public String getLastName() {\n return userItem.getLastName();\n }", "public String getLastName()...
[ "0.82011056", "0.8015198", "0.79349333", "0.7922742", "0.77650154", "0.7753967", "0.7735399", "0.7724454", "0.77183294", "0.77183294", "0.77025443", "0.77025443", "0.7651238", "0.76447886", "0.76418155", "0.76418155", "0.7640441", "0.76072305", "0.7599219", "0.7595992", "0.75...
0.0
-1
The last name, or surname, of the user.
public String getLastName() { return this.lastName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getUserLastName() {\r\n return userLastName;\r\n }", "public String getGoogleUserLastName() {\n return (String) attributes.get(GOOGLE_USER_LAST_NAME);\n }", "public String getLastName() {\n return userItem.getLastName();\n }", "public String getLastName()...
[ "0.820121", "0.80144334", "0.79347646", "0.79225034", "0.776477", "0.77536243", "0.77351856", "0.7724194", "0.7717987", "0.7717987", "0.7702291", "0.7702291", "0.7650447", "0.7644451", "0.7641434", "0.7641434", "0.76406264", "0.7607075", "0.7598854", "0.75956196", "0.7518398"...
0.73004925
73
The last name, or surname, of the user.
public User withLastName(String lastName) { setLastName(lastName); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getUserLastName() {\r\n return userLastName;\r\n }", "public String getGoogleUserLastName() {\n return (String) attributes.get(GOOGLE_USER_LAST_NAME);\n }", "public String getLastName() {\n return userItem.getLastName();\n }", "public String getLastName()...
[ "0.82011056", "0.8015198", "0.79349333", "0.7922742", "0.77650154", "0.7753967", "0.7735399", "0.7724454", "0.77183294", "0.77183294", "0.77025443", "0.77025443", "0.7651238", "0.76447886", "0.76418155", "0.76418155", "0.7640441", "0.76072305", "0.7599219", "0.7595992", "0.75...
0.0
-1
The date and time the user was created in the user pool.
public void setCreatedTime(java.util.Date createdTime) { this.createdTime = createdTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Long getUserCreated();", "public long timeOfCreation() {\n\t\treturn timeOfCreation ;\n\t}", "public Date getUserCreateTime() {\r\n return userCreateTime;\r\n }", "public Long getTimeCreated() {\r\n\t\treturn timeCreated;\r\n\t}", "public int getCreatedTime() {\n return instance.getCreatedTi...
[ "0.79503983", "0.75306726", "0.7490089", "0.7320149", "0.721744", "0.7195444", "0.7096884", "0.70529073", "0.704335", "0.70170194", "0.7006995", "0.69967514", "0.6983678", "0.6977244", "0.694431", "0.6934629", "0.69030404", "0.690103", "0.68989354", "0.689614", "0.6892953", ...
0.0
-1
The date and time the user was created in the user pool.
public java.util.Date getCreatedTime() { return this.createdTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Long getUserCreated();", "public long timeOfCreation() {\n\t\treturn timeOfCreation ;\n\t}", "public Date getUserCreateTime() {\r\n return userCreateTime;\r\n }", "public Long getTimeCreated() {\r\n\t\treturn timeCreated;\r\n\t}", "public int getCreatedTime() {\n return instance.getCreatedTi...
[ "0.79503983", "0.75306726", "0.7490089", "0.7320149", "0.721744", "0.7195444", "0.7096884", "0.70529073", "0.704335", "0.70170194", "0.7006995", "0.69967514", "0.6983678", "0.6977244", "0.694431", "0.6934629", "0.69030404", "0.690103", "0.68989354", "0.689614", "0.6892953", ...
0.0
-1
The date and time the user was created in the user pool.
public User withCreatedTime(java.util.Date createdTime) { setCreatedTime(createdTime); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Long getUserCreated();", "public long timeOfCreation() {\n\t\treturn timeOfCreation ;\n\t}", "public Date getUserCreateTime() {\r\n return userCreateTime;\r\n }", "public Long getTimeCreated() {\r\n\t\treturn timeCreated;\r\n\t}", "public int getCreatedTime() {\n return instance.getCreatedTi...
[ "0.795112", "0.75323135", "0.7490857", "0.7320884", "0.7218224", "0.7196591", "0.70979536", "0.70538163", "0.70441693", "0.7018008", "0.7007567", "0.69966596", "0.69847816", "0.6978364", "0.69453806", "0.6934896", "0.6903908", "0.69021505", "0.69001275", "0.6897184", "0.68939...
0.0
-1
The authentication type for the user.
public void setAuthenticationType(String authenticationType) { this.authenticationType = authenticationType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAuthenticationType() {\n return this.authenticationType;\n }", "int getLoginType();", "public String getUserType() {\n\t\treturn _userType;\n\t}", "public String getUserType() {\n return userType;\n }", "public String getUserType() {\n return userType;\n }", ...
[ "0.8147669", "0.7200479", "0.71259874", "0.70830554", "0.70830554", "0.70830554", "0.70830554", "0.705879", "0.7020581", "0.69852006", "0.693212", "0.6857912", "0.6733803", "0.6378653", "0.63103044", "0.6308923", "0.6305592", "0.6301531", "0.6290716", "0.6270139", "0.62362635...
0.64245147
13
The authentication type for the user.
public String getAuthenticationType() { return this.authenticationType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getLoginType();", "public String getUserType() {\n\t\treturn _userType;\n\t}", "public String getUserType() {\n return userType;\n }", "public String getUserType() {\n return userType;\n }", "public String getUserType() {\n return userType;\n }", "public String getUserTy...
[ "0.7200479", "0.71259874", "0.70830554", "0.70830554", "0.70830554", "0.70830554", "0.705879", "0.7020581", "0.69852006", "0.693212", "0.6857912", "0.6733803", "0.64245147", "0.6378653", "0.63103044", "0.6308923", "0.6305592", "0.6301531", "0.6290716", "0.6270139", "0.6236263...
0.8147669
0
The authentication type for the user.
public User withAuthenticationType(String authenticationType) { setAuthenticationType(authenticationType); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAuthenticationType() {\n return this.authenticationType;\n }", "int getLoginType();", "public String getUserType() {\n\t\treturn _userType;\n\t}", "public String getUserType() {\n return userType;\n }", "public String getUserType() {\n return userType;\n }", ...
[ "0.8147669", "0.7200479", "0.71259874", "0.70830554", "0.70830554", "0.70830554", "0.70830554", "0.705879", "0.7020581", "0.69852006", "0.693212", "0.6857912", "0.6733803", "0.64245147", "0.6378653", "0.63103044", "0.6308923", "0.6305592", "0.6301531", "0.6290716", "0.6270139...
0.57809055
42
The authentication type for the user.
public User withAuthenticationType(AuthenticationType authenticationType) { this.authenticationType = authenticationType.toString(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAuthenticationType() {\n return this.authenticationType;\n }", "int getLoginType();", "public String getUserType() {\n\t\treturn _userType;\n\t}", "public String getUserType() {\n return userType;\n }", "public String getUserType() {\n return userType;\n }", ...
[ "0.8147578", "0.72007304", "0.71272784", "0.70842135", "0.70842135", "0.70842135", "0.70842135", "0.70584685", "0.70202565", "0.6986235", "0.6931623", "0.6859321", "0.673537", "0.64246976", "0.6379435", "0.6312824", "0.6307097", "0.63053167", "0.63021386", "0.6289902", "0.626...
0.0
-1
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getUserName() != null) sb.append("UserName: ").append("***Sensitive Data Redacted***").appen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() { return stringify(this, true); }", "@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t...
[ "0.80985874", "0.80732197", "0.8047513", "0.8047513", "0.8024033", "0.79729897", "0.7937434", "0.79279774", "0.7910009", "0.7893946", "0.77830815", "0.7782138", "0.77671623", "0.7766482", "0.7766482", "0.7766482", "0.7755718", "0.77268595", "0.7722678", "0.7674297", "0.767429...
0.0
-1
Connect GUI and ACTIVITY
private void setOnClickListeners() { progressBar = (ProgressBar) findViewById(R.id.progressBar); progressBar.setMax(100); progressBar.setIndeterminate(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void initAndShowGUI() {\n }", "public GUI() {\n app = new Aplikasi();\n initComponents();\n }", "void onConnected() {\n closeFab();\n\n if (pendingConnection != null) {\n // it'd be null for dummy connection\n historian.connect(pendingConne...
[ "0.6821918", "0.676339", "0.66051", "0.65846735", "0.65842986", "0.6469205", "0.6420565", "0.63972557", "0.6333056", "0.6304586", "0.6299166", "0.6291304", "0.6290674", "0.62803704", "0.62784857", "0.6267952", "0.62348944", "0.6196004", "0.619154", "0.61868435", "0.6178142", ...
0.0
-1
TODO Fill this out someday
@Override protected void onPreExecute() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n...
[ "0.57965225", "0.5670303", "0.5649603", "0.5623082", "0.55997676", "0.554161", "0.5524909", "0.5503544", "0.54934305", "0.54776937", "0.54053915", "0.5397535", "0.5397535", "0.5388049", "0.53607637", "0.53471977", "0.53151566", "0.5284153", "0.52837527", "0.52813447", "0.5274...
0.0
-1
Slows down progress bar process to give user time to read about the activity. TODO Will be used to download data in the background in the future.
@Override protected Void doInBackground(Void... params) { while (myProgress < 100) { myProgress++; publishProgress(myProgress); SystemClock.sleep(50); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View view) {\n progressStatus = 0;\n\n // Start the lengthy operation in a background thread\n new Thread(new Runnable() {\n @Override\n public void run() {\n while (...
[ "0.65812266", "0.6467429", "0.62313366", "0.6173557", "0.60954696", "0.6054263", "0.6042177", "0.60170984", "0.59882224", "0.5987106", "0.5955058", "0.5934405", "0.59334254", "0.59230995", "0.58941996", "0.58852893", "0.58830845", "0.58691937", "0.58580023", "0.58333373", "0....
0.625883
2
TODO Autogenerated method stub
@Override protected void onProgressUpdate(Integer... values) { progressBar.setProgress(values[0]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
constraint definition, spec section 3.6.6
public interface Constraint extends TOSCAObject<Constraint> { public String name(); public default Constraint.Type type() { return Type.valueOf(Type.class, name()); } /* this is a one entry map so here we pick the single */ public default Object expression() { return info().values().iterator().next(); }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constraint createConstraint();", "Constraint createConstraint();", "protected abstract void defineConstraints();", "@DISPID(1610940427) //= 0x6005000b. The runtime will prefer the VTID if present\n @VTID(33)\n Constraints constraints();", "public interface IHardConstraint {\n\t\n\tpublic boolean isConstr...
[ "0.7221522", "0.7221522", "0.69576776", "0.6791041", "0.6715775", "0.64845765", "0.6404917", "0.6312633", "0.61906075", "0.617452", "0.61227024", "0.6107571", "0.6103187", "0.60952", "0.609515", "0.60715526", "0.6045759", "0.60431397", "0.6042889", "0.6007383", "0.59707594", ...
0.64954424
5
/ this is a one entry map so here we pick the single
public default Object expression() { return info().values().iterator().next(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public Entry<K, V> firstEntry() {\n return null;\r\n }", "@Override\n\tpublic Map<String, Object> findOne(Long arg0) {\n\t\treturn null;\n\t}", "@Override\n\t@TimeComplexity(\"O(1)\")\n\tpublic Entry<K, V> firstEntry() {\n\t/* TCJ\n\t * Continuous operation: O(1)\n\t */\n\t\treturn safeEntry...
[ "0.6851043", "0.6302916", "0.6269377", "0.62665904", "0.6254953", "0.6223843", "0.6154084", "0.60607606", "0.60486794", "0.60486794", "0.6039011", "0.59853905", "0.59706634", "0.5952702", "0.5898442", "0.58281887", "0.5795658", "0.5788179", "0.5765968", "0.5764722", "0.576472...
0.0
-1
First name will return an empty string
@Test public void shouldCreateErrorMessageIfFieldsAreEmpty() { when(mockView.getFirstName()).thenReturn(""); mPresenter.saveUser(); verify(mockView, times(1)).getFirstName(); verify(mockView, never()).getLastName(); verify(mockView, times(1)).showInputError(); // Th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getFirstName();", "java.lang.String getFirstName();", "public String getFirstname() {\n return (String) get(\"firstname\");\n }", "public String getFirstname() {\r\n\t\treturn firstname;\r\n\t}", "public String getFirstname() {\n\t\treturn firstname;\n\t}", "public String getFi...
[ "0.8143754", "0.8143754", "0.801979", "0.7969185", "0.78766453", "0.78515077", "0.7838957", "0.7807898", "0.78023434", "0.776323", "0.7743187", "0.77384245", "0.76749253", "0.76193374", "0.7608269", "0.75981367", "0.759615", "0.759615", "0.759615", "0.757334", "0.7536024", ...
0.0
-1
First name and last name will return the data
@Test public void shouldBeAbleToSaveValidUser() { when(mockView.getFirstName()).thenReturn("Albert"); when(mockView.getLastName()).thenReturn("Einstein"); mPresenter.saveUser(); // Called two times verify(mockView, times(2)).getFirstName(); verify(mockView, times(2))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getFirstName();", "java.lang.String getFirstName();", "String getFirstName();", "String getFirstName();", "String getFirstName();", "public java.lang.String getFirstName();", "public void getFirstAndLastName( String name ){//\r\n String nameNew = name.trim();\r\n String[]...
[ "0.7466971", "0.7466971", "0.7239312", "0.7239312", "0.7239312", "0.71813595", "0.71587336", "0.7069017", "0.68785757", "0.67908597", "0.6772801", "0.67594117", "0.6747502", "0.67332906", "0.67240316", "0.67186606", "0.66937506", "0.6677721", "0.6664307", "0.6660033", "0.6658...
0.0
-1
Define an interface that positive button listeners must implement
public interface ChangePasswordListener { // Positive button listener onClick void onDialogPositiveClick(ChangePasswordFragment dialog); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DialogListener {\r\n public void handleYesButton();\r\n}", "public interface PromptButtonListener {\n void onClick(PromptButton button);\n}", "public interface PromptButtonListener {\n void onClick(PromptButton button);\n}", "public interface CallbacksListener\n {\n public...
[ "0.75698644", "0.7567086", "0.7567086", "0.7449133", "0.7426525", "0.7334629", "0.7265905", "0.7258738", "0.7155342", "0.71370524", "0.71306765", "0.7081347", "0.7075818", "0.7036765", "0.70239925", "0.6991788", "0.6986414", "0.6951077", "0.6945641", "0.69411933", "0.6941191"...
0.0
-1
Positive button listener onClick
void onDialogPositiveClick(ChangePasswordFragment dialog);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tpositiveButtonClickListener.onClick(dialog, DialogInterface.BUTTON_POSITIVE);\n\t\t\t\t\t\n\t\t\t\t\tif(dialog != null)\tdialog.dismiss();\n\t\t\t\t}", "public void clickYes ();", "abstract public boolean onPositiveClicked(String userInput);", "publ...
[ "0.7590884", "0.7536193", "0.74646556", "0.74395835", "0.7434436", "0.7416193", "0.735176", "0.727986", "0.7166165", "0.7166165", "0.71564215", "0.71242225", "0.7123972", "0.7115549", "0.71098274", "0.70987386", "0.70794", "0.702757", "0.69980645", "0.6979715", "0.6967779", ...
0.0
-1
Create a dialog builder and layout inflater, and inflate the view
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); LayoutInflater inflater = getActivity().getLayoutInflater(); View view = inflater.inflate(R.layout.dialog_change_password, null); curPass = (Edit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = requireActivity().getLayoutInflater();\n final View view = inflater.inflate(R.layout.on_click_dialog, null);\n bui...
[ "0.7538445", "0.7298336", "0.7167019", "0.7162532", "0.7148993", "0.714352", "0.71316767", "0.7117337", "0.7009876", "0.6994682", "0.6982373", "0.69589806", "0.69330466", "0.6923854", "0.6911665", "0.6903424", "0.68995523", "0.6885198", "0.6876444", "0.67877233", "0.67491615"...
0.0
-1
Cancel the dialog when button is pressed
@Override public void onClick(DialogInterface dialog, int which) { ChangePasswordFragment.this.getDialog().cancel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cancelDialog() {dispose();}", "@Override\n public void onClick(View v)\n {\n begindialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n ...
[ "0.8327062", "0.82356596", "0.822662", "0.8203973", "0.81913346", "0.81913346", "0.8188865", "0.8153912", "0.81236774", "0.81124043", "0.81056017", "0.8078501", "0.80643594", "0.8064118", "0.8063951", "0.80627275", "0.8059702", "0.8023287", "0.80094254", "0.80094254", "0.8009...
0.0
-1
Get the positive button of the dialog
@Override public void onShow(DialogInterface dialog) { Button submit = ChangePasswordFragment.this.dialog.getButton(AlertDialog.BUTTON_POSITIVE); // We override the original listener method because we do not want to exit the dialog // until we verify that the...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean hasPositiveButton() {\n return false;\n }", "protected Button getOkButton()\r\n\t{\r\n\t\treturn okButton;\r\n\t}", "private JButton getAcceptButton() {\n return ((OkCancelButtonPanel) getButtonPanel()).getOkayButton();\n }", "public JButton getOkButton(){\n\t\treturn ok...
[ "0.7175321", "0.7051049", "0.7007193", "0.68688124", "0.6848644", "0.6828308", "0.6650004", "0.66388845", "0.658856", "0.64980894", "0.64858395", "0.6468716", "0.6438733", "0.6433405", "0.64132243", "0.6406703", "0.6406703", "0.6406703", "0.6406703", "0.6378116", "0.63775164"...
0.0
-1
Call positive button listener's on click method and pass in current dialog fragment
@Override public void onClick(View v) { pListener.onDialogPositiveClick(ChangePasswordFragment.this); // Don't dismiss // Listener will dismiss when data is validated }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onDialogPositiveClick(DialogFragment dialog);", "@Override\n public void onDialogPositiveClick(DialogFragment dialog) {\n // User touched the dialog's positive button\n Toast.makeText(this, \"OK\", Toast.LENGTH_LONG).show();\n\n }", "public void doPositiveClick() {\n // D...
[ "0.84945464", "0.79012394", "0.7824403", "0.7636068", "0.7590929", "0.75433147", "0.74476534", "0.7424516", "0.7389888", "0.7283796", "0.7168562", "0.7167252", "0.7117434", "0.7104133", "0.7049274", "0.70399356", "0.70015204", "0.70015204", "0.70015204", "0.70015204", "0.7001...
0.0
-1
TODO Autogenerated method stub
public int deleteEntities(String[] ids) { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public int countEntities(Map<String, Object> parms) { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Gets the value of the accountId property.
public long getAccountId() { return accountId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAccountId() {\n return accountId;\n }", "public String getAccountId() {\n return accountId;\n }", "public String getAccountId() {\n\t\treturn accountId;\n\t}", "public String getAccountId() {\n\t\treturn accountId;\n\t}", "public String getAccountId() {\n return ...
[ "0.8301011", "0.8301011", "0.82768995", "0.82768995", "0.82346284", "0.8202037", "0.81597173", "0.8155866", "0.81554145", "0.8145926", "0.8145926", "0.81022036", "0.81022036", "0.81022036", "0.80702", "0.80702", "0.80702", "0.80178374", "0.800108", "0.7887783", "0.78616005", ...
0.801915
17
Sets the value of the accountId property.
public void setAccountId(long value) { this.accountId = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAccountId(int accountId) {\n this.accountId = accountId;\n }", "public void setAccountId(UUID accountId) {\n this.accountId = accountId;\n }", "public void setAccountId(Integer accountId) {\n this.accountId = accountId;\n }", "public void setAccountId(String accountId) ...
[ "0.7986824", "0.7953282", "0.78935283", "0.78059775", "0.7799391", "0.77686983", "0.77686983", "0.7728872", "0.7728872", "0.7723508", "0.7675094", "0.7642664", "0.7613561", "0.74370354", "0.7360639", "0.7188583", "0.7188583", "0.7172787", "0.6849692", "0.67671984", "0.6753309...
0.7584144
13
creates an ArrayList that can contain Player objects
private GameController() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ArrayList<IPlayer> buildPlayerList();", "public Player()\n {\n playerItem = new ArrayList();\n }", "public Player()\r\n {\r\n playerItem = new ArrayList();\r\n }", "@Override\n public List<Player> getPlayers() {\n return new ArrayList<Player>(players);\n }", "ArrayLis...
[ "0.78319466", "0.74215704", "0.73959255", "0.7377569", "0.73339444", "0.72291595", "0.72256595", "0.7205654", "0.7167832", "0.7167477", "0.7066718", "0.7056798", "0.6950345", "0.6935536", "0.6900472", "0.68444955", "0.6803092", "0.679793", "0.67354155", "0.67337054", "0.66950...
0.0
-1
stores the players location on the gameboard
public static void movePlayer(Player thisPlayer, int moveFields) { if (thisPlayer.getOnField() + moveFields <= FIELD_COUNT) { thisPlayer.setOnField(thisPlayer.getOnField() + moveFields); } else { thisPlayer.setOnField(thisPlayer.getOnField() + moveFields - FIELD_COUNT); }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Location getPlayerLocation();", "public void adjLocation(double l){this.PlayerLocation;}", "private void setupPlayerPosition() {\n\t\tHashMap<Suspect, Coordinates> startPositions = new HashMap<Suspect, Coordinates>();\r\n\t\tstartPositions.put(Suspect.KasandraScarlet, new Coordinates(18, 28));\r\n\t\tstartPosi...
[ "0.7392213", "0.6889234", "0.6730974", "0.6705546", "0.6673576", "0.66507804", "0.65681213", "0.65671223", "0.6550317", "0.6532122", "0.6477468", "0.644399", "0.64160347", "0.6415783", "0.6412908", "0.63505507", "0.62842906", "0.627141", "0.62223077", "0.6175402", "0.6158848"...
0.0
-1
Declares face values to show the die in the GUI
private static void displayDice(Shaker shaker) { int faceValue1 = shaker.getDice()[0].getFaceValue(); int faceValue2 = shaker.getDice()[1].getFaceValue(); // Displays the dice on the board InterfaceController.setDice(faceValue1, faceValue2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Die ()\n {\n numFaces = 6;\n faceValue = 1;\n }", "public Die (int faces)\n {\n if (faces < MIN_FACES)\n numFaces = 6;\n else\n numFaces = faces;\n \n faceValue = 1;\n }", "public Die() {\n\t\tthis.faceValue = 1;\n\t}", "public Die(int faceValue) {\n\...
[ "0.7710756", "0.7133129", "0.70513093", "0.6934533", "0.6838618", "0.6786866", "0.67275184", "0.6627905", "0.65862405", "0.6512967", "0.63959473", "0.63134754", "0.63057524", "0.62438565", "0.62405604", "0.623107", "0.62145054", "0.61780846", "0.608222", "0.60734415", "0.6056...
0.5583755
48
Constructors Constructor voor Hibernate
protected Betaling() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RepoSQL() { // constructor implicit\r\n\t\t super();\r\n\t }", "public EstadosSql() {\r\n }", "public OnibusDAO() {}", "public DatabaseTable() { }", "protected CompanyJPA() {\n\t}", "public AbstractHibernateDAOSupport() {\n super();\n }", "public AbstractEntity() {\r\n\t}", "publi...
[ "0.72585285", "0.68300843", "0.6652742", "0.66322255", "0.66252345", "0.6610751", "0.6604195", "0.65826166", "0.6578161", "0.6552468", "0.6546738", "0.65380156", "0.653401", "0.65315986", "0.6493163", "0.6493131", "0.6461747", "0.6449739", "0.6439853", "0.64229363", "0.642171...
0.0
-1
Get a launcher and missile Explicitly calculate where the missile ends up given angle PhysicsEngine will contain static methods to generate and get data
@Test public void testXEnd() { double endX1 = 55.17, endX2 = 138.75; double v01 = 25, v02 = 38.6; double theta1 = 30, theta2 = 57; assertEquals(PhysicsEngine.findXEnd(v01, theta1, 0), endX1, DELTA); assertEquals(PhysicsEngine.findXEnd(v02, theta2, 0), endX2, DELTA); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int TakeStep()\n\t\t{\n\t\t// the eventual movement command is placed here\n\t\tVec2\tresult = new Vec2(0,0);\n\n\t\t// get the current time for timestamps\n\t\tlong\tcurr_time = abstract_robot.getTime();\n\n\n\t\t/*--- Get some sensor data ---*/\n\t\t// get vector to the ball\n\t\tVec2 ball = abstract_robo...
[ "0.5358244", "0.5310314", "0.5298187", "0.5280286", "0.5266653", "0.5246535", "0.5172831", "0.5170391", "0.5112689", "0.5091677", "0.50817245", "0.5065841", "0.50613517", "0.5049327", "0.50304013", "0.49926108", "0.49730226", "0.49553087", "0.49171406", "0.48859686", "0.48784...
0.0
-1
Get a launcher and missile Explicitly calculate where the missile ends up given angle PhysicsEngine will contain static methods to generate and get data Input values selected arbitrarily, outputs explicitly calculated
@Test public void testXGivenT() { double x1 = 0, x2 = 21.65, x3 = 43.30, x4 = 47.63; double v0 = 25; double theta = 30; double t1 = 0, t2 = 1, t3 = 2, t4 = 2.2; assertEquals(PhysicsEngine.findXPos(v0, theta, t1, 0), x1, DELTA); assertEquals(PhysicsEngine.findXPos(v0, theta, t2, 0), x2, DELTA); assertEqua...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int TakeStep()\n\t\t{\n\t\t// the eventual movement command is placed here\n\t\tVec2\tresult = new Vec2(0,0);\n\n\t\t// get the current time for timestamps\n\t\tlong\tcurr_time = abstract_robot.getTime();\n\n\n\t\t/*--- Get some sensor data ---*/\n\t\t// get vector to the ball\n\t\tVec2 ball = abstract_robo...
[ "0.52904373", "0.5218703", "0.51952726", "0.5176604", "0.51067525", "0.5106723", "0.50993925", "0.5085039", "0.50432146", "0.5022543", "0.5019229", "0.49297902", "0.489408", "0.48673362", "0.48557976", "0.4825881", "0.48123336", "0.4809859", "0.47979528", "0.47964376", "0.476...
0.0
-1
Get a launcher and missile Explicitly calculate where the missile ends up given angle PhysicsEngine will contain static methods to generate and get data
@Test public void testYGivenT() { double y1 = 0, y2 = 7.6, y3 = 5.38, y4 = 3.76; double v0 = 25; double theta = 30; double t1 = 0, t2 = 1, t3 = 2, t4 = 2.2; assertEquals(PhysicsEngine.findYPos(v0, theta, t1, 0), y1, DELTA); assertEquals(PhysicsEngine.findYPos(v0, theta, t2, 0), y2, DELTA); assertEqual...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int TakeStep()\n\t\t{\n\t\t// the eventual movement command is placed here\n\t\tVec2\tresult = new Vec2(0,0);\n\n\t\t// get the current time for timestamps\n\t\tlong\tcurr_time = abstract_robot.getTime();\n\n\n\t\t/*--- Get some sensor data ---*/\n\t\t// get vector to the ball\n\t\tVec2 ball = abstract_robo...
[ "0.5359452", "0.5307889", "0.5298095", "0.52792805", "0.526764", "0.5246826", "0.5172644", "0.51711285", "0.51138306", "0.5091563", "0.50794834", "0.5068024", "0.5061401", "0.504986", "0.50309193", "0.49926198", "0.49727386", "0.49580175", "0.49157947", "0.48836675", "0.48792...
0.0
-1
Returns the name of the main component registered from JavaScript. This is used to schedule rendering of the component.
@Override protected String getMainComponentName() { return "SuperMart"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getComponentName();", "String getComponentName();", "BaseComponent getComponentName();", "String componentTypeName();", "protected String getComponentName() {\n return (component == null) ? \"*No Name*\" : component.toString();\n }", "String constructComponentName() {\n return base + na...
[ "0.7161835", "0.7161835", "0.6536757", "0.63777333", "0.637735", "0.61579037", "0.605598", "0.6037055", "0.60323364", "0.60271394", "0.6012061", "0.5983412", "0.5946779", "0.59447646", "0.5937091", "0.5907285", "0.58902663", "0.5788154", "0.5768198", "0.56955856", "0.56048936...
0.0
-1
Returns an approximation of the maximum length of a message on this protocol. This must be either the same as or less than the maximum size of a message that can be sent with this protocol.
public int getProtocolDelimitedLength();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMAX_LENGTH_MESSAGE() {\n\t\treturn MAX_LENGTH_MESSAGE;\n\t}", "public final int getMessageSize() {\n if (length == UNKNOWN_LENGTH) {\n throw new ProtocolException();\n }\n\n return length;\n }", "public Integer getMaxLength() { \n\t\treturn getMaxLengthElement(...
[ "0.7439861", "0.7410109", "0.737004", "0.7347283", "0.7342466", "0.73155373", "0.72565585", "0.72357106", "0.70457923", "0.7033617", "0.7025088", "0.7001564", "0.69850314", "0.69656885", "0.6934461", "0.69014996", "0.68936336", "0.68785757", "0.684608", "0.68012667", "0.67759...
0.58691114
100
Kicks the specified user off of the specified channel, if the user has priviliges needed to kick the user.
public void kick(String channel, String user, String reason);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void kick(String user, String channel)\n\t{\n\t\tkick(user, channel, null);\n\t}", "public void kick(String user, String channel, String reason)\n\t{\n\t\tsendRaw(\"KICK \" + channel + \" \" + user + (reason != null ? \" :\" + reason : \"\"));\n\t}", "void kick(String user);", "public abstract void ki...
[ "0.7777384", "0.7601229", "0.70490867", "0.6457023", "0.6140004", "0.61363465", "0.59541506", "0.5849011", "0.560602", "0.55782145", "0.55742174", "0.55604553", "0.5467322", "0.54473567", "0.537071", "0.51789254", "0.5163876", "0.51368064", "0.5080264", "0.50663817", "0.50184...
0.7853436
0
Sets a particular mode string at a channel. The specified mode may contain several actual mode strings; for example, to give operator privileges to the user with nickname "jcp" at the channel "test", this method could be called with the arguments "test", "+o jcp". Protocols other than IRC should interpret the mode stri...
public void setMode(String channel, String mode);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder setMode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n mode_ = value;\n onChanged();\n return this;\n }", "public void setMode(String mode) \n\t{\n\t\tthis.mode = string2Octal(...
[ "0.697594", "0.6788939", "0.67678267", "0.65855914", "0.65727496", "0.6436192", "0.64239675", "0.62484175", "0.6196236", "0.6063364", "0.6063058", "0.6052166", "0.6045839", "0.60366553", "0.5997485", "0.5993648", "0.5983368", "0.595941", "0.5844439", "0.58301103", "0.58274573...
0.7900372
0
Returns true if this protocol is currently connected to the server, false if it is not.
public boolean isConnected();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isConnected() {\n\t\treturn sock != null;\n\t}", "public boolean isConnected() {\n return (this.session != null && this.session.isConnected());\n }", "public boolean isConnected() {\n if (client == null) {\n return false;\n }\n return client.isConnected(...
[ "0.8148568", "0.8043641", "0.8026652", "0.7946129", "0.7913394", "0.7904011", "0.7899492", "0.7855106", "0.78426826", "0.78092676", "0.7790466", "0.7781345", "0.77771103", "0.7775139", "0.7766768", "0.77443266", "0.7743927", "0.77404064", "0.7737569", "0.76976323", "0.7697632...
0.7645499
27
TODO: consider adding getActualServer() which, for example, when connecting to irc.freenode.net might return "brown.freenode.net" Instructs the protocol to leave a particular channel. This can be asynchronous; IE it doesn't need to cause the channel list to be updated immediately.
public void partChannel(String channel, String reason);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {\n ctx.getChannel().getRemoteAddress();\n System.out.println(ctx.getChannel().getRemoteAddress()+\" Disconnected..\");\n Client user = ServerTools.getClientByChannel(ctx.getChannel(...
[ "0.6377686", "0.6215662", "0.6164682", "0.6057163", "0.6026051", "0.6009679", "0.5793157", "0.57450527", "0.57377255", "0.5599327", "0.55453885", "0.5532149", "0.5521391", "0.5513775", "0.5498573", "0.5494836", "0.5476539", "0.5475345", "0.5470866", "0.54620415", "0.5458717",...
0.0
-1
Instructs this protocol to disconnect from the server it is connected to. If the server supports a disconnect reason, then the supplied reason should be used.
public void disconnect(String message);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void disconnect(String reason);", "public void onDisconnect(IChatComponent reason) {\n\t\tlogger.info(this.getConnectionInfo() + \" lost connection: \" + reason.getUnformattedText());\n\t}", "public void disconnected(String reason) {}", "public void disconnectedFrom(ServerDescriptor desc);", "public void d...
[ "0.69692856", "0.6787104", "0.6598666", "0.64103603", "0.6358098", "0.62161744", "0.6063684", "0.5911496", "0.5902974", "0.58520186", "0.5813996", "0.5675706", "0.5546414", "0.5531619", "0.5517905", "0.55147016", "0.55024755", "0.5500675", "0.5486601", "0.5469188", "0.5467480...
0.57383394
11
If this protocol supports message delaying, then this returns the number of messages that have not yet been sent because of the enforced delay.
public int getOutgoingQueueSize();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getDelayCount() {\r\n return delayCount;\r\n }", "int getNetTransferMsgsCount();", "int getMessagesCount();", "int getMessagesCount();", "int getMessagesCount();", "private int getNumSent() {\n\t\tint ret = 0;\n\t\tfor (int x=0; x<_sentPackets.getSize(); x++) {\n\t\t\tif (_sentPacket...
[ "0.69046015", "0.6359932", "0.63404644", "0.63404644", "0.63404644", "0.6230387", "0.6229444", "0.6222579", "0.6222579", "0.6187712", "0.61438143", "0.6100211", "0.6100211", "0.6100211", "0.6100211", "0.6100211", "0.6099517", "0.6099146", "0.60835916", "0.6081844", "0.6066123...
0.0
-1
Sets the topic for the specified channel. This should do nothing if the bot doesn't have privileges to set the topic on a server.
public void setTopic(String channel, String topic);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTopic(String channel, String topic)\n\t{\n\t\tsendRaw(\"TOPIC \" + channel + \" \" + topic);\n\t}", "public static void setTopic(String channelId, String topic) {\n if (channelId == null) {\n throw new IllegalArgumentException(\"Channel id cannot be null\");\n }\n i...
[ "0.7804585", "0.6875425", "0.6604521", "0.63432634", "0.614293", "0.6041565", "0.6027727", "0.5851976", "0.5788113", "0.5648962", "0.5642668", "0.5590179", "0.5560566", "0.554477", "0.5470334", "0.53808576", "0.53808576", "0.5353575", "0.53165925", "0.5212598", "0.5167657", ...
0.7944958
0
Changes the bot's nick to the new nickname specified. This generally should not persist through a reconnect. If this protocol does not support nickname changing, this should do nothing.
public void changeNick(String newnick);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IRCSocketManager setNick(String nick)\n\t{\n\t\tif (nick == null)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"Nick cannot be null.\");\n\t\t}\n\t\tthis._nick = nick;\n\t\t// Before attempting a send operation, we have to make sure we're actually\n\t\t// connected to a server, and that the bot's conne...
[ "0.7535434", "0.7316038", "0.7298696", "0.7244827", "0.7244827", "0.71853495", "0.7150383", "0.7063479", "0.7063479", "0.7063479", "0.7063479", "0.7063479", "0.7055271", "0.7032646", "0.69496006", "0.69449955", "0.69449955", "0.69449955", "0.69449955", "0.69449955", "0.686255...
0.8243592
0
Execute a protocolspecific function.
public void processProtocolFunction(Sink sink, ArgumentList arguments, FactContext context);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void doCommand(String command);", "protected abstract DispatchOutcome dispatchCommand(CommandEnvelope cmd);", "public final void execute(Protocol protocol ) throws CommandExecuteException {\n\t\tthis.execute(protocol, DEFAULT_COMMAND_TIMEOUT );\n\t}", "abstract public void execute(FunctionCon...
[ "0.5775995", "0.5670791", "0.56622344", "0.5661608", "0.5649805", "0.56376505", "0.5533083", "0.5533083", "0.5533083", "0.5489526", "0.54756904", "0.54583997", "0.54278904", "0.5406986", "0.53961676", "0.5395821", "0.53832877", "0.538141", "0.5381383", "0.5363574", "0.5324128...
0.6145962
0
Called once when JZBot is about to discard this connection. No other methods will ever be called on this connection again. Unless some unusual circumstance occurs, this will always be preceded by a call to disconnect().
public void discard();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void processDisconnect() {\n\t\tconnected.set(false);\n\t\tsenderChannel = null;\n\t}", "abstract protected void onDisconnection();", "public void disconnect()\n {\n isConnected = false;\n }", "protected void onDisconnect() {}", "public void disconnect() {\n SocketWrapper.getInsta...
[ "0.79654104", "0.77414614", "0.77207667", "0.7648665", "0.7573049", "0.7570506", "0.75434357", "0.75285023", "0.75226223", "0.75164294", "0.7474041", "0.74685675", "0.7423299", "0.74205804", "0.739844", "0.7372661", "0.73621434", "0.73552483", "0.73451495", "0.7344683", "0.73...
0.0
-1
Returns true if this protocol is one that prefers long responses to be pastebinned, false if it would prefer some other means, such as multiple messages, to be used. For example, IRC prefers pastebin posts, but BZFlag does not as it's quite difficult to copy a URL from within a BZFlag client and view it.
public boolean likesPastebin();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean supportsLongerLDStrings() {\n // The fix for DERBY-5236 went into the 10.8 branch after the first\n // release off that branch. The DRDA maintenance version was bumped\n // to 1 when the fix went in (the third argument in the call to\n // greaterThanOrEqualTo() refers ...
[ "0.554395", "0.55414826", "0.5498193", "0.53906226", "0.52590495", "0.5220749", "0.5188391", "0.5127776", "0.51266265", "0.51173156", "0.5115936", "0.5111368", "0.50936407", "0.5091472", "0.5054201", "0.504405", "0.5036109", "0.49955156", "0.49936143", "0.4986838", "0.4984606...
0.52325547
5
/ Method that allow to start the motion of the pacmans inside the GameZone (canvas).
public void movePacmans() { try { gz.redraw(); } catch(NullPointerException npe) { gz.pauseGame(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void startMovement();", "public void Start() \r\n {\r\n // Set the canvas as the current phone's screen\r\n mDisplay.setCurrent(this);\r\n\r\n // we call our own initialize function to setup all game objects\r\n GameInitialize();\r\n\r\n // Here we setup the thread and start...
[ "0.63544625", "0.6161291", "0.61014396", "0.60750127", "0.60451996", "0.6004923", "0.6000418", "0.59943503", "0.5989276", "0.59833586", "0.592693", "0.5923949", "0.59160244", "0.5908619", "0.58605206", "0.584057", "0.58358544", "0.58257914", "0.5808569", "0.579584", "0.579215...
0.6803306
0
/ Method that allow to stop the motion of the pacmans (close their threads) and close the window.
public void stopApplication() { windowOpened = false; Platform.exit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void stop() {\r\n\t\tif (!running)\r\n\t\t\treturn;\r\n\t\trunning = false;\r\n\t\ttry {\r\n\t\t\tthread.join();//ends thread to close program correctly\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(0);//closes canvas\r\n\t\t}\r\n\t}", "public synchronized v...
[ "0.7289412", "0.69683623", "0.69451183", "0.68545926", "0.6792221", "0.6759056", "0.6759056", "0.6759056", "0.6759056", "0.67564154", "0.67270184", "0.66254044", "0.65931976", "0.65818083", "0.65527046", "0.6507683", "0.65023035", "0.65023035", "0.6459135", "0.6444705", "0.64...
0.6455256
19
/ Method that allow to indicates if the window is opened or not.
public boolean isOpened() { return windowOpened; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isOpened();", "boolean isPopUpOpened();", "public boolean isOpened() {\n return false;\n }", "public boolean isOpened() {\r\n return opened != null;\r\n }", "public boolean isOpened() {\n return opened;\n }", "public boolean isOpened() {\n return opened;\n }", ...
[ "0.77356154", "0.7605769", "0.74511194", "0.71471035", "0.6937439", "0.69293594", "0.69021195", "0.6898926", "0.6875523", "0.68753546", "0.6866246", "0.68630296", "0.6853215", "0.6853215", "0.6838757", "0.68045694", "0.6804539", "0.6803316", "0.67828923", "0.6742814", "0.6713...
0.80925995
0
/ Method that allow to obtain an object of Canvas type.
public Canvas getGameZone() { return gz; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "GameCanvas getCanvas();", "public interface Canvas {\n\tpublic String LABEL_CHANGE = \"label_change_property\";\n\t/**\n\t * @return name of Canvas or an empty String by default. MAY NOT BE NULL.\n\t */\n\tpublic String getName();\n\t/**\n\t * @return color of Canvas or null by default\n\t */\n\tpublic Color ge...
[ "0.67081654", "0.6575427", "0.6476902", "0.6441102", "0.6383915", "0.63219917", "0.62890935", "0.62700486", "0.62470233", "0.61236805", "0.6060601", "0.59153366", "0.58959115", "0.57520175", "0.56810504", "0.55586207", "0.555626", "0.55505425", "0.5463871", "0.54450184", "0.5...
0.0
-1
/ Method that allows to call the method continueGame() through an event.
@FXML public void continueGame(ActionEvent event) { gz.continueGame(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actionPerformed(ActionEvent e){\n\t\t\tstartGame();\n\t\t}", "private void continueGame() {\n System.out.println(\"\\n\" + \"Do you want to play more games or quit?\\n\" + \"1. Lotto\\n\" + \"2. Small Lotto\\n\" + \"3. Quit\");\n input = scanner.next();\n changeGame();\n }", ...
[ "0.67710054", "0.6724244", "0.6688027", "0.6669019", "0.65893453", "0.6588405", "0.6579742", "0.6549639", "0.6549639", "0.65408736", "0.6443054", "0.64310735", "0.6330328", "0.6322294", "0.6321139", "0.6318528", "0.63175577", "0.6309456", "0.62998515", "0.62977016", "0.627399...
0.7324746
0
/ Method that allows to call the method pauseGame() through an event.
@FXML public void pauseGame(ActionEvent event) { gz.pauseGame(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void pauseGame() {\n myGamePause = true;\n }", "void pauseGame() {\n myShouldPause = true;\n }", "void pauseGame() {\n myShouldPause = true;\n }", "@Override\n\tpublic void pause() \n\t{\n\t\tif (state_Game==GAME_READY) \n\t\t{\n\t\t\tstate_Game=GAME_PAUSED;\n\t\t}\n\t}", "@Override\n\tpublic v...
[ "0.7641623", "0.74371165", "0.74371165", "0.723334", "0.722979", "0.71654516", "0.71309996", "0.7097211", "0.70635486", "0.69715184", "0.69715184", "0.68742967", "0.6865858", "0.68605345", "0.6856649", "0.6837482", "0.68161327", "0.677994", "0.6768102", "0.6747122", "0.670847...
0.74369884
3
/ Method that allow to set an object of Canvas type.
public void setGameZone(GameZone gz) { this.gz = gz; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCanvas(Canvas canvas) {\r\n\t\tthis.canvas = canvas;\r\n\t}", "public interface Canvas {\n\tpublic String LABEL_CHANGE = \"label_change_property\";\n\t/**\n\t * @return name of Canvas or an empty String by default. MAY NOT BE NULL.\n\t */\n\tpublic String getName();\n\t/**\n\t * @return color of ...
[ "0.67079884", "0.5946625", "0.5853167", "0.5847403", "0.5708568", "0.5689498", "0.5580337", "0.55756015", "0.5543585", "0.55194885", "0.5512037", "0.5450745", "0.544701", "0.5446701", "0.54364157", "0.5435789", "0.5435789", "0.5404306", "0.5353601", "0.5346063", "0.53363234",...
0.0
-1
Singleton mySingleton = new Singleton.getInstance();
public static void main(String[] args) { Singleton mySingleton = new Singleton(); mySingleton.getInstance(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void useSingleton(){\n\t\tSingleton singleton = Singleton.getInstance();\n\t\tprint(\"singleton\", singleton);\n\t}", "private Singleton(){\n }", "private Singleton(){}", "private Singleton() { }", "public static Singleton getInstance( ) {\n return singleton;\n }", "public static Singlet...
[ "0.8543256", "0.84338844", "0.8278974", "0.8259153", "0.8152955", "0.8140648", "0.8101117", "0.8078374", "0.80545753", "0.8010599", "0.7995398", "0.7938639", "0.78081685", "0.780187", "0.77711654", "0.7750039", "0.7739279", "0.76588845", "0.76413876", "0.763706", "0.7633044",...
0.7182265
49
pass user protocol (what else ?? )
public boolean isUserAuthorized(String userName) throws Exception { HDFSNameNodeComponentManager componentManager = HDFSNameNodeComponentManager.getInstance(); boolean isUserexist = componentManager.getRealmForCurrentTenant().getUserStoreManager().isExistingUser(userName); List<String> userRoles...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getProtocol();", "public void setProtocol (java.lang.String protocol) {\r\n this.protocol = protocol;\r\n }", "public void setProtocol(String protocol) {\n this.protocol = protocol;\n }", "public void setProtocol(Protocol protocol)\n \t{\n \t\tthis.protocol = protocol;\n \t}", "...
[ "0.66656035", "0.65858173", "0.63896525", "0.6334455", "0.6303884", "0.62345576", "0.6020655", "0.59739155", "0.59718335", "0.5942258", "0.5916736", "0.58977836", "0.58625996", "0.5855528", "0.5832789", "0.58178705", "0.58178705", "0.5815808", "0.5794103", "0.57656914", "0.56...
0.0
-1
Constructor de la clase Profesor
public Profesor (String apellidos, String nombre, String nif, Persona.sexo genero, int edad, int expediente){ this.apellidos = apellidos; this.nombre = nombre; this.nif = nif; this.genero = genero; this.edad = edad; this.expediente = expediente; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Propuestas() {}", "public Produto() {}", "public Prova() {}", "public Plato(){\n\t\t\n\t}", "public Propiedad(){\n\t}", "public prueba()\r\n {\r\n }", "public Pasien() {\r\n }", "public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parame...
[ "0.80720496", "0.79997337", "0.78777766", "0.7804193", "0.7588094", "0.7513225", "0.7263177", "0.72457147", "0.7157117", "0.7119436", "0.7108439", "0.70692146", "0.7044133", "0.7044133", "0.7018538", "0.70165485", "0.701459", "0.6992835", "0.69889283", "0.6987126", "0.6969449...
0.66458297
58
A predicate to determine if a Jira version should be become a GitHub Milestone, e.g. the version "Waiting for Triage", used in SPR becomes the label "status: waitingfortriage" and not a milestone.
public interface MilestoneFilter extends Predicate<JiraVersion> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getMilestone() {\n return milestone;\n }", "public void milestone1(int num) {\n if (num % 2 == 0)\n System.out.println(\"Even\");\n else\n System.out.println(\"Odd\");\n }", "public String getMilestoneId()\n {\n String milestone...
[ "0.5012916", "0.4989775", "0.4923347", "0.49086714", "0.47433305", "0.4735359", "0.47126567", "0.46692884", "0.45925474", "0.4426588", "0.44205847", "0.4396643", "0.43904874", "0.43710175", "0.43379852", "0.4331942", "0.43130502", "0.43088937", "0.42783806", "0.42174113", "0....
0.55479413
0
Metodo che consente di leggere il contenuto di un pacchetto
static protected void readContent(DatagramPacket dp) throws IOException { ByteArrayInputStream biStream = new ByteArrayInputStream(dp.getData(), 0, dp.getLength()); DataInputStream diStream = new DataInputStream(biStream); message = diStream.readUTF(); System.out.println("Messaggio ricevuto: "+messa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CetakPenjualan() {\n initComponents();\ntampilDataPen();\nthis.setResizable(false);\n }", "public InterfazdelJuego() {\n super(\"Batalla de acorazados 1.0\");\n initComponents();\n stickers=new JLabel[10][10];\n setLocationRelativeTo(null);\n llenarMapa();\n ...
[ "0.68594456", "0.68486834", "0.68362176", "0.6593465", "0.6528472", "0.65043783", "0.646813", "0.64642686", "0.6427956", "0.64121735", "0.6394784", "0.63916737", "0.6391493", "0.6389823", "0.6389139", "0.6379709", "0.63495976", "0.63475275", "0.6338039", "0.6327317", "0.63200...
0.0
-1
Metodo che consente di leggere i campi di un messaggio
static private void readMessage(){ index = 0; code = 0; firstParam = ""; secondParam = ""; thirdParam = ""; StringTokenizer st = new StringTokenizer(message, "_"); String c = st.nextToken(); index = Integer.parseInt(c); c = st.nextToken(); code = Integer.parseInt(c); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void limpiarCampos(){\n\n\t\tcampoInicio.setText(\"yyyy-mm-dd\");\n\t\tcampoInicio.setForeground(new Color(111,111,111));\n\t\tcampoFinal.setText(\"yyyy-mm-dd\");\n\t\tcampoFinal.setForeground(new Color(111,111,111));\n\n\t}", "public void sendMessage() {\n String userMessage = textMessage.getText();\n...
[ "0.6408345", "0.6369793", "0.6231847", "0.60895944", "0.60654354", "0.60366505", "0.6010596", "0.5967624", "0.5860302", "0.58368224", "0.5830377", "0.58174044", "0.58077365", "0.5732685", "0.5730541", "0.5716292", "0.5710994", "0.570413", "0.56969935", "0.5654012", "0.5607614...
0.0
-1
TODO Autogenerated method stub
@Override public Object mapRow(ResultSet rs, int arg1) throws SQLException { VoltDegree vd = new VoltDegree(); vd.setVolt(rs.getString("VOLT")); vd.setVoltCode(rs.getString("VOLT_CODE")); return vd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Description: User: JianHuangsh Date: 20180314 Time: 18:55
public interface IContractMgtService { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo55254a() {\n }", "private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t\t}", "public void mo21877s() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n...
[ "0.58537936", "0.58367586", "0.5813197", "0.5802934", "0.5802934", "0.5802934", "0.5802934", "0.5802934", "0.5802934", "0.5802934", "0.5759669", "0.5749691", "0.5729107", "0.56963795", "0.5662626", "0.5656726", "0.5622697", "0.55971074", "0.55609256", "0.55473363", "0.554534"...
0.0
-1
Make the constructor private so its only accessible to members of the class.
private AirforceOne_lazy() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Foo() {\n\t\tSystem.out.println(\"Private Constructor.\");\n\t}", "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "@Override\n public boolean getAllowPrivateConstructors()\n {\n \treturn allowPrivateConstructors;\n }", "private ATCres() {\r\n // prevent to instantia...
[ "0.7464921", "0.7292126", "0.7167056", "0.71235496", "0.71222717", "0.7110426", "0.70799196", "0.7066012", "0.7047868", "0.703622", "0.70214134", "0.6986681", "0.6976317", "0.69677556", "0.693966", "0.69305754", "0.69157183", "0.68830085", "0.6877783", "0.68764174", "0.687628...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { setResizable(false); athensPic = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); btnBack = new javax.swing.JButt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7319545", "0.7290502", "0.7290502", "0.7290502", "0.72860676", "0.7248135", "0.72132677", "0.7208833", "0.7195503", "0.71899074", "0.71839535", "0.7159182", "0.71478266", "0.7092896", "0.7081379", "0.70575553", "0.6987028", "0.69771224", "0.69548094", "0.6954804", "0.69449...
0.0
-1
Convert some amount in this currency to another currency.
public float convertTo(Currency newCurrency, float amount){ return amount * getConversionRateTo(newCurrency); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public ConversionResultDto convert(String sourceCurrency, String targetCurrency, BigDecimal sourceCurrencyAmount) {\n BigDecimal exchangeRate = fxRatesService.getPairExchangeRate(sourceCurrency, targetCurrency);\n BigDecimal targetCurrencyAmount = sourceCurrencyAmount.multiply(exchange...
[ "0.680981", "0.6669819", "0.6628894", "0.6617617", "0.64961064", "0.6484248", "0.6389443", "0.6377734", "0.63483715", "0.6247515", "0.6230378", "0.61945105", "0.6168611", "0.6153063", "0.61444354", "0.6117326", "0.60470796", "0.6013369", "0.60031366", "0.5975377", "0.5962197"...
0.69905895
0
Format a some amount to a string representation of that amount.
public String format(float amount, boolean includeSymbol) { DecimalFormat decimalFormat = new DecimalFormat(); decimalFormat.setGroupingUsed(false); decimalFormat.setMaximumFractionDigits(precision); String formattedAmount = decimalFormat.format(amount); if(includeSymbol) formattedAmount = symbol + format...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String format(double balance);", "protected static String getAmountFormat(String amount) {\n\t\tStringBuilder strBind = new StringBuilder(amount);\n\t\tstrBind.append(\".00\");\n\t\treturn strBind.toString();\n\t}", "private String getFormattedAmount(final BigDecimal amount) {\n final java.text.DecimalF...
[ "0.73605055", "0.72966504", "0.72119147", "0.7028182", "0.70271444", "0.693574", "0.6874169", "0.67356193", "0.66600364", "0.66575855", "0.6645301", "0.6627716", "0.66133964", "0.6610347", "0.6579561", "0.65787196", "0.6544294", "0.6497326", "0.6447256", "0.6441925", "0.64190...
0.6865599
7
Constructor to set up the controller sets up the view and modelStore sets up the onclicks listeners set up the appointment and patient data
public DoctorUIController(Models modelStore, String UserID) { this.modelStore = modelStore; this.DoctorView = new DoctorUI(); DoctorView.setVisible(true); DoctorView.setTxtDoctorID(UserID); setUpOnClicks(); setUpAppointment(); setUpPatients(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Appointment()\r\n {\r\n // cView = new CalendarEventView(\"appointmentView\");\r\n }", "public AppointmentInformationView(Controller controller, Appointment appointment, String title) {\n super(controller);\n super.hourTextField.setText(\"\" + Integer.toString(appointment.getHour...
[ "0.68191457", "0.65318775", "0.6329409", "0.6280315", "0.6258441", "0.59760636", "0.59089637", "0.5878966", "0.58712256", "0.58462197", "0.5840675", "0.5834722", "0.5801454", "0.5786706", "0.57663727", "0.57627827", "0.57479215", "0.5745717", "0.5745212", "0.5733129", "0.5720...
0.6057242
5
Save the model to file calls the writeFile object to write the models to the file
public void saveData(){ file.executeAction(modelStore); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveToFile(File file, Model model) throws IOException;", "void save() {\n gameModelPoDao.saveToFile(file.getAbsolutePath(), gameModelPo);\n }", "public void save(){\r\n\t\t//System.out.println(\"call save\");\r\n\t\tmodel.printDoc();\r\n\t}", "public void saveModel(File model_file) thro...
[ "0.83828676", "0.7580919", "0.74406695", "0.74174935", "0.72859895", "0.71029663", "0.702883", "0.69986117", "0.69375473", "0.6934774", "0.68544537", "0.6806082", "0.68039507", "0.6798674", "0.67970437", "0.67882144", "0.67622966", "0.66964763", "0.6673501", "0.6643564", "0.6...
0.7074372
6
prevents from crashing if date is less than 10
public String checkDateDay(Date aDate){ if (aDate.getDate() < 10) { String newDate = "0" + Integer.toString(aDate.getDate()); return newDate; } return Integer.toString(aDate.getDate()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkForValidDate(String dateTime) {\n\n int daysOfMonth[] = {31,28,31,30,31,30,31,31,30,31,30,31};\n\n Timestamp now = new Timestamp(new java.util.Date().getTime());\n Timestamp date = Timestamp.valueOf(startDateTime);\n if (date.after(now)) {\n outputError(lineCount + ...
[ "0.6531186", "0.62045026", "0.6107216", "0.6078961", "0.6061483", "0.6003653", "0.58375657", "0.5802693", "0.5771116", "0.5769982", "0.57574993", "0.5750976", "0.57449496", "0.57389027", "0.5734563", "0.5695664", "0.5627035", "0.5609282", "0.5581334", "0.5561386", "0.55497736...
0.5831994
7
prevents from crashing if month is less than 10
public String checkDateMonth(Date aDate){ if (aDate.getMonth() < 10) { String newDate = "0" + Integer.toString(aDate.getMonth()+1); return newDate; } return Integer.toString(aDate.getMonth()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int checkMonth(int testMonth) {\n\t\tif (testMonth > 0 && testMonth <= 12) // validate month\n\t\t\treturn testMonth;\n\t\telse // month is invalid\n\t\t\tthrow new IllegalArgumentException(\"month must be 1-12\");\n\t}", "private void checksOldExpense() {\n DateUtils dateUtils = new DateUtils();\...
[ "0.64196306", "0.6199616", "0.6022979", "0.59946275", "0.5958731", "0.585725", "0.57919246", "0.5781477", "0.56939524", "0.5547999", "0.55265975", "0.55076396", "0.54855347", "0.5464311", "0.54537594", "0.5446185", "0.5441791", "0.5423142", "0.54178375", "0.5409067", "0.54090...
0.5710795
8
create a new socket interface from the host and post
public EnvironmentSocket createNewSocket(String host, int port) throws IOException { Socket socket = new Socket(host, port); return wrapperSocket(socket); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int createSocket()\n\t{\n\t\t\n\t}", "private Socket newSocket() throws IOException {\n try {\n InetAddress hostAddress = InetAddress.getByName(publicAddress);\n return new Socket(hostAddress, AgentRemoteService.PORT);\n } catch (IOException e) {\n throw new ...
[ "0.68665767", "0.6730801", "0.6559602", "0.6546189", "0.6437012", "0.64170885", "0.63866854", "0.6375854", "0.6340099", "0.6298969", "0.629531", "0.62619776", "0.6252476", "0.6230177", "0.6212583", "0.61872023", "0.61859095", "0.61537045", "0.61513335", "0.6149596", "0.614741...
0.66000825
2
create a server socket wrapped in an interface
public EnvironmentServerSocket createServerSocket(int port) throws IOException { return new EnvironmentServerSocketImpl(new ServerSocket(port), this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ServerSocketFactory {\n\n\t\tpublic ServerSocket create() throws IOException;\n\n\t}", "public interface CallServerSocketFactory {\n /**\n * @param pServerAddress Server identifier (DNS, IP, URL, etc.), can null\n */\n ServerSocket createSocket(\n String pServerAddress, ...
[ "0.7507693", "0.73094016", "0.6932719", "0.6923155", "0.6908498", "0.68925977", "0.684681", "0.6843764", "0.67507845", "0.67322016", "0.67125934", "0.6695317", "0.66497743", "0.6642666", "0.6640446", "0.658055", "0.6574661", "0.6566785", "0.6559225", "0.65383536", "0.6515352"...
0.0
-1
wrapper an existing socket
public EnvironmentSocket wrapperSocket(Socket socket) { return new EnvironmentSocketImpl(socket); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static Wrapper wrap(Socket socket) throws IOException {\n\t\treturn new Wrapper(socket);\n\t}", "public SocketWrapper(final Socket socket) throws IOException {\n this.host = socket.getInetAddress().getHostName();\n this.port = socket.getPort();\n this.socket = socket;\n initStreams();\n opened = t...
[ "0.75198096", "0.7514264", "0.73675084", "0.7040396", "0.6951401", "0.6692465", "0.66862196", "0.66431344", "0.6580373", "0.65780455", "0.6522032", "0.6471016", "0.64605236", "0.6425533", "0.6360143", "0.63442", "0.63214606", "0.631041", "0.62946004", "0.62811685", "0.6259694...
0.73769087
2
Instantiate the animation model
@Before public void setUp() { testAnimation = new AnimationModelImpl(); // Instantiate the IShapes r = new Rectangle("R", 50.0, 100.0, 1, 0, 0, 200.0, 200.0); c = new Ellipse("C", 120.0, 60.0, 0, 0, 1, 500.0, 100.0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VisualView(ReadOnlyAnimatorModel aModel) {\n\n super();\n\n // attrs\n\n int leftMostX = (int) aModel.getBoundingBoxLoc().getX();\n int topMostY = (int) aModel.getBoundingBoxLoc().getY();\n int height = aModel.getBoundingBoxHeight();\n int width = aModel.getBoundingBoxWidth();\n\n List<...
[ "0.7299208", "0.7159686", "0.70293164", "0.7006586", "0.6741383", "0.66637456", "0.66173214", "0.6592576", "0.6587019", "0.6445001", "0.64405036", "0.6320196", "0.61035246", "0.60996157", "0.6082303", "0.6080783", "0.60799545", "0.60756993", "0.6067401", "0.6025397", "0.60121...
0.5896064
29
_________________________________ EXCEPTIONS: Rectangle ______________________________________.
@Test(expected = IllegalArgumentException.class) public void sameShapeName() { testAnimation.addShape(r, 1, 100); // new shape with same name IShape f = new Rectangle("R", 2, 4, 3, 50, 10, 30.0, 75.0); testAnimation.addShape(f, 30, 80); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected = IllegalArgumentException.class)\n public void invalidRectangleWidthNotGreaterThan0() {\n model1.addShape(Rectangle.createRectangle(\"R\", new Point.Double(200, 200),\n new Color(1, 0, 0), 1, 0, -50, 100));\n }", "void createRectangles();", "public InvalidRectangleException(Stri...
[ "0.7306919", "0.7268894", "0.7172065", "0.71085393", "0.70573205", "0.70196575", "0.70196575", "0.69488037", "0.69488037", "0.69488037", "0.6922388", "0.6841099", "0.6824507", "0.68168205", "0.67886215", "0.6765925", "0.6715539", "0.6673513", "0.6654364", "0.6638039", "0.6632...
0.0
-1
___________________________ EXCEPTIONS: Duplicate shape ______________________________________.
@Test(expected = IllegalArgumentException.class) public void testAddSameShapeTwice() { testAnimation.addShape(c, 1, 100); testAnimation.addShape(c, 50, 70); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected = IllegalArgumentException.class)\n public void testNoShapeWithSameName() {\n model1.addShape(Rectangle.createRectangle(\"R\", new Point.Double(500, 200),\n new Color(0, 0, 0), 0, 10, 10, 10));\n model1.addShape(Oval.createOval(\"R\", new Point.Double(500, 200),\n new Co...
[ "0.67368585", "0.6630552", "0.6579213", "0.64077115", "0.6374689", "0.6330927", "0.6310878", "0.62978524", "0.6259439", "0.620209", "0.61683154", "0.6166752", "0.61663", "0.6145606", "0.6104049", "0.6103167", "0.61015177", "0.6017462", "0.60083276", "0.5986501", "0.59781367",...
0.7084457
0
___________________________ EXCEPTIONS: Appear and Disappear _________________________________.
@Test(expected = IllegalArgumentException.class) public void testAppearEqualsDisappear() { testAnimation.addShape(c, 100, 100); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showErrorMessage(){\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n mGridView.setVisibility(View.INVISIBLE);\n }", "public void showError() {\n mapView.setVisibility(View.GONE);\n loadingLayout.setVisibility(View.GONE);\n errorLayout.setVisibility(View.VIS...
[ "0.62637603", "0.6208707", "0.62047005", "0.60866994", "0.606532", "0.6050778", "0.60235727", "0.60107714", "0.60100335", "0.59993744", "0.59993744", "0.59726644", "0.59532255", "0.59511936", "0.59210855", "0.5899367", "0.58559906", "0.5843436", "0.5816683", "0.58123124", "0....
0.0
-1
___________________________ EXCEPTIONS: Null tests ______________________________________.
@Test(expected = IllegalArgumentException.class) public void testNullShape() { testAnimation.addShape(null, 1, 100); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testNull() throws Exception {\n\t\ttestWith(null);\n\t}", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n ...
[ "0.72393256", "0.7226251", "0.70261", "0.70229405", "0.70079863", "0.6971332", "0.6936963", "0.6917658", "0.6894816", "0.6887592", "0.68809116", "0.6853908", "0.6847981", "0.6803541", "0.6778474", "0.6765858", "0.67639947", "0.6744881", "0.6742768", "0.67423016", "0.6724555",...
0.0
-1
_____________________________________ AddShape() Test ________________________________________.
@Test public void testAddShape() { // add the "R" & "C" shapes to the animation testAnimation.addShape(r, 1, 100); testAnimation.addShape(c, 6, 100); assertEquals("Shapes:\n" + "Name: R\n" + "Type: rectangle\n" + "Min corner: (200.0,200.0), Width: 50.0, Height: 100...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void add(Shape aShape);", "void addShape(IShape shape);", "private static void addShaped()\n {}", "public void addShape(TShape aShape){\r\n // fShapes.remove(aShape); // just in case it was already there\r\n\r\n /*unfortunately we need to have a front to back screen order, properties at the bac...
[ "0.8313483", "0.8260499", "0.8015513", "0.7745868", "0.75305057", "0.7493757", "0.73277324", "0.72838545", "0.72668993", "0.72271585", "0.7205516", "0.71518767", "0.70810366", "0.7011081", "0.7004907", "0.69994676", "0.69322455", "0.691742", "0.6906302", "0.6838686", "0.68342...
0.6852642
19
____________________________ EXCEPTIONS: Event without Shape _________________________________.
@Test(expected = IllegalArgumentException.class) public void testAddMoveEventWithoutAddShape() { move1 = new MoveShape(r, 200.0, 200.0, 300.0, 300.0); testAnimation.addEvent(r, move1, 10, 50); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addEvent(IShape shape, IEvent event, int eventBegin, int eventEnd);", "void event(Event e) throws Exception;", "Event () {\n // Nothing to do here.\n }", "BoundaryEvent createBoundaryEvent();", "@Override\n\tpublic void nullifyEventHandlers() {\n\t\tshape.setOnMousePressed(null);\n\t\tshape.setOnM...
[ "0.68239003", "0.6377428", "0.6331509", "0.627424", "0.6252205", "0.6190939", "0.6186347", "0.6173501", "0.6088699", "0.6087154", "0.6074424", "0.60607934", "0.60140806", "0.6012499", "0.60059893", "0.5938945", "0.5922707", "0.5907505", "0.59045374", "0.58976716", "0.5876043"...
0.6629927
1
_____________________________ EXCEPTIONS: Begin and End ______________________________________.
@Test(expected = IllegalArgumentException.class) public void testAddMoveEndBeforeBegin() { testAnimation.addShape(r, 1, 100); size1 = new ScaleShape(r, 50.0, 100.0, 25.0, 100.0); testAnimation.addEvent(r, size1, 90, 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void doException() {\n\r\n\t}", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n ...
[ "0.65467227", "0.63425326", "0.63425326", "0.63425326", "0.63425326", "0.63425326", "0.6333914", "0.6177237", "0.6105263", "0.6075674", "0.60656583", "0.6061311", "0.60257596", "0.59876627", "0.5966433", "0.5956381", "0.59552556", "0.5940581", "0.5934862", "0.5904532", "0.589...
0.0
-1
____________ EXCEPTIONS: Add Same Event types With Overlapping tick range ___________________.
@Test(expected = IllegalArgumentException.class) public void testScaleOverlap() { testAnimation.addShape(r, 1, 100); size1 = new ScaleShape(r, 50.0, 100.0, 25.0, 100.0); size2 = new ScaleShape(r, 25.0, 100.0, 70.0, 1000.0); testAnimation.addEvent(r, size1, 90, 100); testAnimation.addEvent(r, size2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void updateAxisRange(){\n Axis<X> xAxis = getXAxis();\n Axis<Y> yAxis = getYAxis();\n ArrayList<X> xList = null;\n ArrayList<Y> yList = null;\n if(xAxis.isAutoRanging()) { xList = new ArrayList<>(); }\n if(yAxis.isAutoRanging()) { yList = new Array...
[ "0.5765251", "0.5667518", "0.5650625", "0.5628734", "0.5593186", "0.54442877", "0.54298514", "0.5394484", "0.5348286", "0.5322565", "0.5274203", "0.52548563", "0.5234903", "0.5233317", "0.5223315", "0.5201555", "0.5199176", "0.51909363", "0.51838875", "0.5168827", "0.5162558"...
0.52210873
15
_________________________ Overlapping Different Changes Test _______________________________.
@Test public void testDifferentChangeTypeOverlap() { testAnimation.addShape(c, 1, 100); move1 = new MoveShape(c, 500.0, 100.0, 300.0, 300.0); size1 = new ScaleShape(c, 120.0, 60.0, 85.0, 10.67); colorChange1 = new ChangeColor(c, 0, 0, 1, 0, 1, 0); testAnimation.addEvent(c, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.get...
[ "0.6177526", "0.61656755", "0.6077033", "0.60529757", "0.6003321", "0.5994551", "0.59931475", "0.5981264", "0.59367645", "0.59136105", "0.5897622", "0.5894461", "0.58805484", "0.5874779", "0.587306", "0.58388466", "0.58222795", "0.58082426", "0.5787942", "0.5784262", "0.57444...
0.6764081
0
______________________________________ AddMove() Test ________________________________________.
@Test public void testAddMove() { testAnimation.addShape(r, 1, 100); testAnimation.addShape(c, 6, 100); // Instantiate the moves move1 = new MoveShape(r, 200.0, 200.0, 300.0, 300.0); move2 = new MoveShape(c, 500.0, 100.0, 500.0, 400.0); move3 = new MoveShape(r, 300.0, 300.0, 200.0, 200.0); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void moveAdded(int playerIndex, Move move);", "public void addMove() {\n\t\tmove = \"mv \" + posX + \" \" + posY;\n\t}", "public void move(){\n\t\t\n\t}", "protected void addMove(Move move) {\n moveHistory.add(move);\n pointer++;\n }", "boolean makeMove();", "public void move() {\n\r\n\t...
[ "0.7629127", "0.75153625", "0.7310868", "0.71793616", "0.7163632", "0.7149608", "0.7126016", "0.71211994", "0.71157753", "0.7112245", "0.7090252", "0.7073843", "0.7073843", "0.704769", "0.7021985", "0.7014313", "0.701302", "0.698862", "0.6982679", "0.6973917", "0.69240874", ...
0.6429664
79
__________________________________ AddSizeChange() Test ______________________________________.
@Test public void testAddSizeChange() { testAnimation.addShape(r, 1, 100); // Instantiate the size change size1 = new ScaleShape(r, 50.0, 100.0, 25.0, 100.0); size2 = new ScaleShape(r, 25.0, 100.0, 25.0, 13.0); testAnimation.addEvent(r, size1, 51, 70); testAnimation.addEvent(r, size2, 71, 73);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void adjustSize(long size);", "public abstract void sizeChanged(SizeChangedEvent event);", "@Override\n\tprotected void changeSize(int x, int y, int previousX, int previousY) {\n this.setWidth(this.getWidth()+(x-previousX));\n this.setHeight(this.getHeight()+(y-previousY));\n ...
[ "0.7606362", "0.7170749", "0.70682573", "0.7017951", "0.69436765", "0.69436765", "0.6923167", "0.6832641", "0.66646796", "0.6654736", "0.65851766", "0.6554887", "0.654623", "0.6506132", "0.64343005", "0.6422147", "0.63598484", "0.63461864", "0.63347423", "0.6325864", "0.63255...
0.69246316
6
____________________________________ ColorChange() Test ______________________________________.
@Test public void testColorChange() { testAnimation.addShape(c, 6, 100); // Instantiate the color change colorChange1 = new ChangeColor(c, 0, 0, 1, 0, 1, 0); colorChange2 = new ChangeColor(c, 0, 1, 0, 25, 1, 0); testAnimation.addEvent(c, colorChange1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void changeColor(){\r\n if(color == 1)\r\n color = 2;\r\n else\r\n color = 1;\r\n }", "@Override\n public void changeColor(ColorEvent ce) {\n \n txtRed.setText(\"\"+ ce.getColor().getRed());\n txtGreen.setText(\"\"+ ce.getColor().getGreen());\n txt...
[ "0.7552862", "0.752411", "0.7387065", "0.7365436", "0.7276", "0.726505", "0.72466636", "0.72117895", "0.7187952", "0.71712005", "0.7022813", "0.70089513", "0.69839936", "0.69805795", "0.6979288", "0.6978234", "0.69730407", "0.6959583", "0.6930265", "0.6930265", "0.69171005", ...
0.7250815
6
_____________________________________ Test Everything ________________________________________.
@Test public void testEverything() { testAnimation.addShape(r, 1, 100); testAnimation.addShape(c, 6, 100); move1 = new MoveShape(r, 200.0, 200.0, 300.0, 300.0); move2 = new MoveShape(c, 500.0, 100.0, 500.0, 400.0); move3 = new MoveShape(r, 300.0, 300.0, 200.0, 200.0); size1 = new ScaleShape(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testSanity() {\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "private void test() {\n\n\t}", "public void testCheckOxyEmpty() {\n }", "@Test\n\tpublic void testMain() {\n\t\t// TODO: test output streams for various IO methods, emulating a user's\n\t\t// input - kinda ...
[ "0.7457519", "0.7364855", "0.71379596", "0.69984955", "0.6957895", "0.695563", "0.69123274", "0.68819237", "0.688068", "0.6828251", "0.6816723", "0.68108946", "0.6774237", "0.6766034", "0.6736772", "0.6734664", "0.6725875", "0.6722546", "0.67100465", "0.67030156", "0.670068",...
0.0
-1
make sure we have implementation for all supported obj functions
@Test public void testObjFunction() { for (XGBoostMojoModel.ObjectiveType type : XGBoostMojoModel.ObjectiveType.values()) { assertNotNull(type.getId()); assertFalse(type.getId().isEmpty()); // check we have an implementation of ObjFunction assertNotNull(XGBoostJavaMojoModel.getObjFunction(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void mo1184a(Object obj);", "void mo3207a(Object obj);", "default ObjectHandler<? extends T> handleObject() {\n throw new UnsupportedOperationException();\n }", "void mo6504by(Object obj);", "void mo67921a(Object obj);", "public void setupConvenienceObjects();", "void m21807c(...
[ "0.6515788", "0.6497149", "0.6480122", "0.63175327", "0.62503564", "0.6216355", "0.61957365", "0.6190386", "0.617692", "0.61468196", "0.6111871", "0.6075703", "0.6036246", "0.6027329", "0.59988636", "0.5979165", "0.59334344", "0.59234244", "0.58935636", "0.58788836", "0.58641...
0.65267396
0
Created by zzq on 2016/11/4.
public interface SurgeryDao { public boolean updateSurgery(@Param("surgery")Surgery surgery); public boolean startSurgery(@Param("surgery")Surgery surgery); public boolean endSurgery(@Param("surgery")Surgery surgery); public List<String> selectDistinctDoctor(); public List<String> selectDistinc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpubli...
[ "0.6145879", "0.60171974", "0.5966407", "0.592491", "0.59106004", "0.5906085", "0.5906085", "0.58766127", "0.5860211", "0.582393", "0.58058983", "0.57950187", "0.5762024", "0.57444876", "0.574103", "0.5727719", "0.57269937", "0.57222444", "0.5721093", "0.570783", "0.5705247",...
0.0
-1
Computes the price of a onetouch/notouch option.
public double price( double spot, double timeToExpiry, double costOfCarry, double rate, double lognormalVol, SimpleConstantContinuousBarrier barrier) { ArgChecker.notNull(barrier, "barrier"); boolean isKnockIn = barrier.getKnockType().isKnockIn(); boolean isDown = barrie...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getOptionPrice()\n {\n return optionPrice;\n }", "public double Get_Option_User_Choice_Price(String Op_Set_Name)\n {\n for(OptionSet i: opset) {\n if(Op_Set_Name.equalsIgnoreCase(i.getName()))\n return (i.User_Choice_Price()); \n...
[ "0.61728364", "0.61110234", "0.60415435", "0.6025371", "0.60027444", "0.5960953", "0.59582734", "0.59435016", "0.5916206", "0.590976", "0.59095585", "0.59090763", "0.5897553", "0.58799833", "0.58557683", "0.58241785", "0.5816085", "0.5787873", "0.5780637", "0.5757762", "0.574...
0.0
-1
Computes the price and derivatives of a onetouch/notouch option. The derivatives are [0] spot, [1] rate, [2] costofcarry, [3] volatility, [4] timeToExpiry, [5] spot twice.
public ValueDerivatives priceAdjoint( double spot, double timeToExpiry, double costOfCarry, double rate, double lognormalVol, SimpleConstantContinuousBarrier barrier) { ArgChecker.notNull(barrier, "barrier"); double[] derivatives = new double[6]; boolean isKnockIn = barr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public double[] computeOption(Option o){\n double temp=o.getVolatility();\n double[] prices=new double[NUMOFDOTS];\n double vBase=o.getVolatility();\n int count= (NUMOFDOTS-1)/2; // count = 5\n\n if(o.getRight()==OptionRight.PUT){\n prices[count]=crunchP...
[ "0.62199104", "0.5869922", "0.5554448", "0.5375445", "0.5294037", "0.52218616", "0.52214503", "0.5191361", "0.5070256", "0.5027407", "0.498526", "0.4957503", "0.49206907", "0.49175227", "0.48876956", "0.48849693", "0.48769754", "0.48738724", "0.48546055", "0.4845904", "0.4827...
0.533653
4
The firstDerivatives are [0] s, [1] df2, [2] x, [3] y, [4] lognormalVolT, [5] mu. The second derivatives are [0] s twice, [1] x twice, [2] y twice, [3] s and y.
private double getEAdjoint( double s, double df2, double x, double y, double lognormalVolT, double h, double mu, double eta, double[] firstDerivatives, double[] secondDerivatives) { double n1 = NORMAL.getCDF(eta * (x - lognormalVolT)); double n2 = NOR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getFAdjoint(\n double s,\n double z,\n double lognormalVolT,\n double h,\n double mu,\n double lambda,\n double eta,\n double[] firstDerivatives,\n double[] secondDerivatives) {\n\n double n1 = NORMAL.getCDF(eta * z);\n double n2 = NORMAL.getCDF(eta...
[ "0.5690058", "0.53682214", "0.52759063", "0.5197408", "0.5108831", "0.50779283", "0.5063123", "0.5040507", "0.50290465", "0.50259167", "0.4952079", "0.48864877", "0.48568365", "0.4855912", "0.48416406", "0.4825504", "0.47808325", "0.47696766", "0.4732855", "0.47242007", "0.47...
0.69536924
0
The firstDerivatives are [0] s, [1] z, [2] lognormalVolT, [3] mu, [4] lambda. The second derivatives are [0] s twice, [1] z twice, [2] s and z.
private double getFAdjoint( double s, double z, double lognormalVolT, double h, double mu, double lambda, double eta, double[] firstDerivatives, double[] secondDerivatives) { double n1 = NORMAL.getCDF(eta * z); double n2 = NORMAL.getCDF(eta * (z - 2 * lambd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getEAdjoint(\n double s,\n double df2,\n double x,\n double y,\n double lognormalVolT,\n double h,\n double mu,\n double eta,\n double[] firstDerivatives,\n double[] secondDerivatives) {\n\n double n1 = NORMAL.getCDF(eta * (x - lognormalVolT));\n ...
[ "0.6410089", "0.5344048", "0.5329866", "0.5316213", "0.5182189", "0.50447774", "0.5040282", "0.49721375", "0.49694824", "0.49637946", "0.49551475", "0.4942175", "0.49326575", "0.4919735", "0.49098158", "0.48474002", "0.4819206", "0.47755888", "0.47490934", "0.4746291", "0.474...
0.7001226
0