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
Find the _Fields constant that matches fieldId, throwing an exception if it is not found.
public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields find...
[ "0.76270795", "0.76270795", "0.76270795", "0.76270795", "0.76270795", "0.76270795", "0.76270795", "0.7621982", "0.7621982", "0.7621982", "0.7621982", "0.7621982", "0.7621982", "0.7621982", "0.7621982", "0.7621982", "0.7621982", "0.7621982", "0.7621982", "0.7621982", "0.762198...
0.0
-1
Find the _Fields constant that matches name, or null if its not found.
public static _Fields findByName(String name) { return byName.get(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache...
[ "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "...
0.0
-1
Performs a deep copy on other.
public PlaceEvent(PlaceEvent other) { if (other.isSetLimb()) { this.limb = other.limb; } if (other.isSetPos()) { this.pos = new Position(other.pos); } if (other.isSetOri()) { this.ori = new Orientation(other.ori); } if (other.isSetSpeed()) { this.speed = new Speed(oth...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Prototype makeCopy();", "public void copy (WorldState other)\n\t{\n\t\tresetProperties();\n\t\t//Iterate through other state and clone it's properties into this states properties\n\t\tCollection<WorldStateProperty> otherProperties = other.properties.values();\n\t\tfor (WorldStateProperty property : otherProperti...
[ "0.7214815", "0.6982586", "0.6743959", "0.66792786", "0.6563397", "0.6549605", "0.65230364", "0.652084", "0.64842516", "0.64743775", "0.6450891", "0.6438907", "0.64186275", "0.640633", "0.6403375", "0.63743764", "0.6373319", "0.6358263", "0.6322797", "0.63214344", "0.62839", ...
0.0
-1
Returns true if field limb is set (has been assigned a value) and false otherwise
public boolean isSetLimb() { return this.limb != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetValue() {\n return this.value != null;\n }", "public boolean isSetValue() {\n return this.value != null;\n }", "boolean...
[ "0.7647111", "0.7647111", "0.7077453", "0.7032341", "0.6854947", "0.6854947", "0.6812064", "0.660008", "0.6446849", "0.6393179", "0.63930786", "0.63930786", "0.63930786", "0.63930786", "0.63930786", "0.63930786", "0.63930786", "0.63930786", "0.63930786", "0.63930786", "0.6393...
0.7417898
2
Returns true if field pos is set (has been assigned a value) and false otherwise
public boolean isSetPos() { return this.pos != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasPosition() {\n return fieldSetFlags()[7];\n }", "public static boolean isSet(int field, int pos) {\n if(pos < 1 || pos > 32) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 32\");\n }\n long flag = (long) Math.pow(2, (pos-1...
[ "0.76383346", "0.7451078", "0.7320905", "0.72167677", "0.7190639", "0.7190639", "0.70946616", "0.7024234", "0.70051736", "0.70051736", "0.6866722", "0.68522716", "0.67913526", "0.67913526", "0.6783173", "0.6756336", "0.67434156", "0.6708427", "0.67032427", "0.6699076", "0.669...
0.8097357
1
Returns true if field ori is set (has been assigned a value) and false otherwise
public boolean isSetOri() { return this.ori != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean hasOR() {\n return fieldSetFlags()[16];\n }", "public boolean isSetOe() {\n\t\t\treturn this.oe != null;\n\t\t}", "@Override\n ...
[ "0.7192", "0.7192", "0.68889683", "0.66063523", "0.65721244", "0.65534735", "0.6547811", "0.65075475", "0.64973116", "0.64973116", "0.64973116", "0.64973116", "0.64973116", "0.64973116", "0.64973116", "0.64973116", "0.64973116", "0.64973116", "0.64973116", "0.6355795", "0.632...
0.7438948
0
Returns true if field speed is set (has been assigned a value) and false otherwise
public boolean isSetSpeed() { return this.speed != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasSpeed();", "boolean hasSpeed();", "boolean hasSpeed();", "boolean hasSpeed();", "boolean hasSpeed();", "boolean hasSpeed();", "public boolean hasSpeed() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }", "public boolean hasSpeed() {\n return ((bitField0_ & 0x000...
[ "0.7724837", "0.7724837", "0.7724837", "0.7724837", "0.7724837", "0.7724837", "0.7590857", "0.75908256", "0.75908256", "0.757857", "0.7577286", "0.7577286", "0.75467545", "0.75393045", "0.7436597", "0.7419952", "0.7346138", "0.7314241", "0.73040795", "0.7231405", "0.70393336"...
0.84256035
0
Returns true if field angls is set (has been assigned a value) and false otherwise
public boolean isSetAngls() { return this.angls != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetFields() {\n return this.fields != null;\n }", "private boolean fieldsAreFilled(){\n return !textboxName.isEnabled() && !t...
[ "0.7278399", "0.7278399", "0.6760184", "0.6724771", "0.67100835", "0.6653211", "0.6647936", "0.6617894", "0.6581007", "0.65798116", "0.65798116", "0.6569866", "0.6569866", "0.6569866", "0.6569866", "0.6569866", "0.6569866", "0.6569866", "0.6569866", "0.6569866", "0.6569866", ...
0.7247372
2
Returns true if field mode is set (has been assigned a value) and false otherwise
public boolean isSetMode() { return this.mode != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetModeID() {\n return (this.modeID != null ? this.modeID.isSetValue() : false);\n }", "public boolean isSetModeName() {\n return (this.modeName != null ? this.modeName.isSetValue() : false);\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public ...
[ "0.75069106", "0.7271144", "0.71088123", "0.71088123", "0.6944968", "0.69009215", "0.68525994", "0.6732094", "0.6714349", "0.66697013", "0.6637108", "0.66289824", "0.65848935", "0.6578665", "0.65685487", "0.65386593", "0.6512231", "0.6503502", "0.6491179", "0.648721", "0.6474...
0.7534447
0
Returns true if field kin is set (has been assigned a value) and false otherwise
public boolean isSetKin() { return this.kin != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetKau() {\n return this.kau != null;\n }", "public boolean isSetKau() {\n return this.kau != null;\n }", "public boolean isSetKnf() {\n return this.knf != null;\n }", "public boolean isSetKnf() {\n return this.knf != null;\n }", "public boolean isSetKnf() {...
[ "0.7089871", "0.7089871", "0.70178497", "0.70178497", "0.70178497", "0.70178497", "0.70178497", "0.70178497", "0.70178497", "0.70178497", "0.70178497", "0.6776391", "0.6776391", "0.6776391", "0.6497865", "0.6497865", "0.64167947", "0.64167947", "0.64164", "0.6393725", "0.6393...
0.8202932
0
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case LIMB: return isSetLimb(); case POS: return isSetPos(); case ORI: return isSetOri(); case SPEED: return isSetSpeed(); case ANGLS: r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n ...
[ "0.79056656", "0.79056656", "0.78333884", "0.78036314", "0.77937067", "0.7780796", "0.7780796", "0.7780796", "0.7780796", "0.76468164", "0.754723", "0.75451803", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179...
0.0
-1
check for required fields
public void validate() throws org.apache.thrift.TException { if (limb == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'limb' was not present! Struct: " + toString()); } if (pos == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean validateRequiredFields(StringBuffer b){\n boolean result = true;\n\n if (!TextFieldHelper.isNumericFieldValid(this.goalValue, \" Цель: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.startWeightValue, \" Исходный вес: \", b) ||\n !TextFieldHelper.isNumericFieldVali...
[ "0.75287306", "0.7430543", "0.7430543", "0.7430543", "0.7394445", "0.73590785", "0.7280072", "0.7234574", "0.72328943", "0.72021484", "0.7163772", "0.71448237", "0.7141192", "0.7092876", "0.7075819", "0.7058885", "0.70559984", "0.70541537", "0.70536923", "0.7030236", "0.70288...
0.0
-1
create a shader program
private static int compileShader(int type, String shaderCode){ final int shaderObjectId = glCreateShader(type); if(shaderObjectId == 0){ System.out.print("Can't create a shader\n"); return 0; } //传递glsl代码 glShaderSource(shaderObjectId,shaderCode); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ShaderProgram(Context context, int vertexShaderResourceId, int fragmentShaderResourceId, ShaderType type) {\n\t\t// Compile the shaders and link the program.\n\t\tmProgram = ShaderHelper.getInstance().buildProgram(TextResourceReader.readTextFileFromResource(context, vertexShaderResourceId),\n\t\t\tTextResourceRead...
[ "0.73096067", "0.7276405", "0.71225697", "0.69831955", "0.68467766", "0.68013996", "0.67725354", "0.676714", "0.6751442", "0.6742909", "0.66847384", "0.6680794", "0.655843", "0.65461445", "0.6521269", "0.65098095", "0.6499301", "0.6486424", "0.64712816", "0.64443487", "0.6367...
0.67900234
6
TODO Autogenerated method stub
@Override public void add(BookInfoVO vo) { bookInfoDao.add(vo); }
{ "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
@Override public void delete(BookInfoVO vo) { bookInfoDao.delete(vo); }
{ "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
@Override public void modify(BookInfoVO vo) { bookInfoDao.modify(vo); }
{ "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
@Override public List<BookInfoVO> findAll() { return bookInfoDao.findAll(); }
{ "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
@Override public BookInfoVO findByNo(BookInfoVO vo) { return bookInfoDao.findByNo(vo); }
{ "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
Parent is default Ctor. needed for Firestore.
public Parent() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Parent() {\n\t System.out.println(\"i am from Parent Class\");\n\t }", "Parent()\n\t{\n\t\tSystem.out.println(\"This is parent's default constructor\");\n\t}", "public DocumentBase() {\n \n }", "public CouchDoc() {\n super();\n docType = getClass().getSimpleName();\n }", "protected C...
[ "0.6696346", "0.6536181", "0.6387659", "0.63774747", "0.61829424", "0.60268724", "0.5958084", "0.5950794", "0.59449565", "0.5921083", "0.5916941", "0.5868402", "0.57653373", "0.5757968", "0.5757968", "0.5757968", "0.5757968", "0.5757968", "0.5757968", "0.5757968", "0.5757968"...
0.7264148
0
The display method displays all the details about that game. Total No of players for the selected game, Number of players online for the game, what open matches are there for the game. Help topics, Multilayer support, Head to head FAQ is provided.All the widgets information is stored.
@Override public ActionForward display(ActionMapping mapping, BaseForm form, String operation, HttpServletRequest request, HttpServletResponse response) { AuditUtil.getInstance().writeLog( AuditUtil.FILE_TYPE_G4G, new StringBuffer(this.getClass().getName()).append( G4GConstants.CALLINGME...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void display(){\n out.println(\"\\n-STOCK EXCHANGE-\");\n out.println(\"Apple - Share Price: \" + game.apple.getSharePrice() + \" [\" + game.apple.top() + \"]\");\n out.println(\"BP - Share Price: \" + game.bp.getSharePrice() + \" [\" + game.bp.top() + \"]\");\n out.pri...
[ "0.6589836", "0.6522584", "0.6166559", "0.59025", "0.5891953", "0.5873874", "0.5813032", "0.5810456", "0.5786001", "0.5776129", "0.57471263", "0.5732338", "0.5728625", "0.5700771", "0.56770056", "0.56765926", "0.5658908", "0.56467634", "0.5637093", "0.56303084", "0.56176573",...
0.0
-1
The submit method redirects to home page.
@Override public ActionForward submit(ActionMapping mapping, BaseForm form, String operation, HttpServletRequest request, HttpServletResponse response) { AuditUtil.getInstance().writeLog( AuditUtil.FILE_TYPE_G4G, new StringBuffer(this.getClass().getName()).append( G4GConstants.COLON_WITH_S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onSubmit()\n {\n Page page = ((DccdSession)Session.get()).getRedirectPage(RegistrationPage.class);\n if (page != null)\n {\n \tlogger.debug(\"Back to Page class: \" + page.getClass().ge...
[ "0.69943637", "0.67923945", "0.6693455", "0.6673793", "0.65036505", "0.6427411", "0.6355806", "0.63431036", "0.6198843", "0.61824244", "0.61356586", "0.6103567", "0.6074884", "0.60591656", "0.6055521", "0.6039975", "0.6028115", "0.59963524", "0.59946746", "0.5984177", "0.5967...
0.6454301
5
initializate all components of the frame
private void init(){ this.firstNameTF.setText(user.getFirstName()); this.nameTF.setText(user.getName()); this.phoneTF.setText(user.getPhone()); this.mailLabel.setText(user.getMail()); this.roleLabel.setText(user.getFirstName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initComponents() {\n\t\t\n\t}", "private void initComponents() {\n\t\t\n\t}", "private void initComponents() {\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n }", "private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }", "private void initialize...
[ "0.7978882", "0.7978882", "0.7933828", "0.7916877", "0.7830931", "0.7747498", "0.7698508", "0.7631468", "0.75414604", "0.7537212", "0.7531914", "0.752563", "0.752433", "0.74933684", "0.74764925", "0.74711996", "0.7468997", "0.74665344", "0.74393755", "0.74162024", "0.7395259"...
0.0
-1
AcUspsInternationalCgrWorkLegFlightConflictSummaryVoBase and AcUspsInternationalCgrWorkLegFlightConflictSummaryVoPk must match.
public void setWebKey(String s) { ScDecoder x = new ScDecoder(s); setLegDepartureLocalTm((JwTime)x.get()); setLegArrivalLocalTm((JwTime)x.get()); setLegArrivalDayOffset((Integer)x.get()); setLegStopCount((Integer)x.get()); setLegEquipment((String)x.get()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean equals(Object object) {\n if (!(object instanceof DisponibilidadResultadosPK)) {\n return false;\n }\n DisponibilidadResultadosPK other = (DisponibilidadResultadosPK) object;\n if ((this.anio == null && other.anio != null) || (this.anio != null &...
[ "0.4757195", "0.46983224", "0.46460706", "0.44925", "0.44713286", "0.44212732", "0.44035935", "0.43923855", "0.4371256", "0.4340662", "0.4275238", "0.42732173", "0.4245894", "0.4243774", "0.42437345", "0.4236677", "0.42246288", "0.42064455", "0.41977444", "0.4195157", "0.4180...
0.0
-1
AcUspsInternationalCgrWorkLegFlightConflictSummaryVoBase and AcUspsInternationalCgrWorkLegFlightConflictSummaryVoPk must match.
public int hashCode() { int i = 0; if ( hasLeg() ) i ^= getLegDepartureLocalTm().hashCode(); if ( hasLeg() ) i ^= getLegArrivalLocalTm().hashCode(); if ( hasLeg() ) i ^= getLegArrivalDayOffset().hashCode(); if ( hasLeg() ) i ^= ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean equals(Object object) {\n if (!(object instanceof DisponibilidadResultadosPK)) {\n return false;\n }\n DisponibilidadResultadosPK other = (DisponibilidadResultadosPK) object;\n if ((this.anio == null && other.anio != null) || (this.anio != null &...
[ "0.47567663", "0.46971336", "0.46441507", "0.44929677", "0.4470706", "0.44201496", "0.4402451", "0.4392241", "0.43704915", "0.43401423", "0.42740455", "0.42727992", "0.42448848", "0.4243646", "0.4243437", "0.42366883", "0.42237714", "0.42065144", "0.4197219", "0.4195603", "0....
0.0
-1
Format the primary key fields in a comma separated list. The format is intended to be suitable for display to users.
public String formatPrimaryKey() { StringBuilder sb = new StringBuilder(); AcFormatter f = new AcFormatter(); sb.append(f.formatAny(getLegDepartureLocalTm())); sb.append(", "); sb.append(f.formatAny(getLegArrivalLocalTm())); sb.append(", "); sb.append(f.format...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getBatchId()));\n sb.append(\", \");\n sb.append(f.formatAny(getNestId()));\n return sb.toString();\n }", "public String form...
[ "0.7855341", "0.75910795", "0.75910795", "0.75910795", "0.75910795", "0.75910795", "0.73439455", "0.7311273", "0.61367583", "0.5993363", "0.59309506", "0.5703868", "0.566737", "0.5607769", "0.55545896", "0.5534492", "0.5528293", "0.5503922", "0.54949325", "0.5431539", "0.5415...
0.7498436
6
static comparators (obsolete use tools instead) // deprecated; instead use: AcUspsInternationalCgrWorkLegFlightConflictSummaryVoTools.MinEffectiveStartUtcDtComparator
public static JwComparator<AcUspsInternationalCgrWorkLegFlightConflictSummaryVo> getMinEffectiveStartUtcDtComparator() { return AcUspsInternationalCgrWorkLegFlightConflictSummaryVoTools.instance.getMinEffectiveStartUtcDtComparator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JwComparator<AcGlobalDomesticActualMarketCache> getEffectiveStartDtComparatorNullsLower()\n {\n return EffectiveStartDtComparatorNullsLower;\n }", "public JwComparator<AcActionAutoCorrectedLog> getScannedEffectiveUtcTsComparatorNullsLower()\n {\n return ScannedEffectiveUtcTsComparat...
[ "0.74244606", "0.7145721", "0.7039872", "0.70378286", "0.6626445", "0.6597624", "0.6526529", "0.6526228", "0.6482612", "0.6428585", "0.6338348", "0.63211787", "0.62417483", "0.60095924", "0.59961796", "0.5990324", "0.59853286", "0.59519273", "0.5942852", "0.58681315", "0.5795...
0.8328737
0
deprecated; instead use: AcUspsInternationalCgrWorkLegFlightConflictSummaryVoTools.MaxEffectiveEndUtcDtComparator
public static JwComparator<AcUspsInternationalCgrWorkLegFlightConflictSummaryVo> getMaxEffectiveEndUtcDtComparator() { return AcUspsInternationalCgrWorkLegFlightConflictSummaryVoTools.instance.getMaxEffectiveEndUtcDtComparator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static JwComparator<AcUspsInternationalCgrReplyOffer> getEffectiveEndUtcDtComparator()\n {\n return AcUspsInternationalCgrReplyOfferTools.instance.getEffectiveEndUtcDtComparator();\n }", "public JwComparator<AcGlobalDomesticActualMarketCache> getEffectiveEndDtComparatorNullsLower()\n {\n ...
[ "0.66476405", "0.6151087", "0.5503506", "0.54757667", "0.5473872", "0.5421959", "0.5212425", "0.51714927", "0.5076166", "0.4970715", "0.49688968", "0.48853266", "0.48461482", "0.48260477", "0.48159817", "0.47833148", "0.47654536", "0.47568336", "0.47116855", "0.4708414", "0.4...
0.8036597
0
TODO Autogenerated method stub builder p = new housebuilder(2,4); //Here We unable to handle single work that means unable to give only one parameter
public static void main(String[] args) { builder p = new housebuilder().setBuilddoors(5).setBuildwalls(1).gethouse();//Where as Here we have the flexibility to pass only required fields as parameters System.out.println(p); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n House house=new House.HouseBuilder().build();\n\n House house1=new House.HouseBuilder()\n .addGarage(true)\n .addGarden(new Garden())\n .addRooms(5)\n .addWindows(10)\n .build();\n\...
[ "0.7088561", "0.6489884", "0.60188246", "0.60004854", "0.5959861", "0.58884037", "0.58480585", "0.58424103", "0.58334225", "0.58100307", "0.58055574", "0.57829344", "0.5775821", "0.576906", "0.57652617", "0.57551503", "0.5746293", "0.5744602", "0.5742865", "0.5740706", "0.571...
0.72837496
0
REQUIRES: The ship's current sector and the direction of the shot. MODIFIES: This. EFFECTS: Creates an instance of a maser and puts it into a sector next to the ship depending on the direction of the shoot; sets the maser's label and initial direction and speed; initializes the maser's tail.
public Maser(Sector sector, int direction){ super(sector, direction); label = Configs.MSR; sectors = new ArrayList<Sector>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void move(){\n\t\tSector tail = null;\n\t\tif(hit){\n\t\t\ttail = getNext();\n\t\t\tif(tail == null){\t\n\t\t\t\tselfDestruct();\n\t\t\t} else {\t\t\n\t\t\t\tsector.setInhabitant(null);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tsectors.add(sector);\n\t\tSector nextSector = quadrant.getNext(sector, ve...
[ "0.5699286", "0.5658725", "0.5459751", "0.5457073", "0.5400131", "0.5356508", "0.5338378", "0.5307535", "0.5278913", "0.5244421", "0.5243188", "0.5210555", "0.5187514", "0.51870745", "0.5181502", "0.51527536", "0.51455486", "0.51411", "0.5132679", "0.5132452", "0.5080393", ...
0.548685
2
MODIFIES: This: The maser's current sector and tail, and flag of hitting. EFFECTS: Checks what is in the next sector; puts the maser into the next sector if it's empty; bumps the object in the next sector if the next sector contains any; removes one piece of the maser's tail if the maser has bumped or reached the quadr...
@Override public void move(){ Sector tail = null; if(hit){ tail = getNext(); if(tail == null){ selfDestruct(); } else { sector.setInhabitant(null); } return; } sectors.add(sector); Sector nextSector = quadrant.getNext(sector, velocity[0]); if(nextSector == null){ hit = true; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void act() \n {\n World w = getWorld();\n int height = w.getHeight();\n \n setLocation(getX(),getY()+1);\n if (getY() <=0 || getY() >= height || getX() <= 0) // off the world\n {\n w.removeObject(this);\n return;\n }\n \n ...
[ "0.54383594", "0.53080934", "0.5201556", "0.51778686", "0.5113366", "0.5099876", "0.4971835", "0.49436656", "0.48744166", "0.48732674", "0.48727474", "0.48708856", "0.48549643", "0.48161796", "0.48120078", "0.48060837", "0.47987777", "0.4790708", "0.47886792", "0.47559187", "...
0.67985094
0
MODIFIES: This: The maser's tail. EFFECTS: Returns the first sector with the maser's tail and removes it from the tail if the tail still exists or null otherwise.
private Sector getNext(){ if(sectors.size() == 0){ return null; } Sector sector = sectors.get(0); sectors.remove(0); return sector; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected T removeFromTail()\n\t{\n\t\tif(tail == null)\n\t\t\treturn null;\n\t\t\n\t\tT ret = tail.getVal();\n\t\ttail = tail.getPrev();\n\t\t\n\t\tif(tail == null)\n\t\t\thead = tail;\n\t\telse\n\t\t\ttail.setNext(null);\n\t\t\n\t\treturn ret;\n\t}", "@Override\n\tpublic void move(){\n\t\tSector tail = null;\n...
[ "0.56616443", "0.5614978", "0.5593364", "0.5517679", "0.5478659", "0.5453493", "0.54400206", "0.5430206", "0.52552795", "0.5195552", "0.5117662", "0.5114063", "0.5022217", "0.5004819", "0.4971019", "0.4953299", "0.49519694", "0.49473894", "0.4906611", "0.48929223", "0.4852727...
0.5175161
10
PURPOSE: This has been hit by other SpaceObject so it sets 'hit' to true so that it can start removing its tail and object's bumped() called so that they can deal with this particular impact MODIFIES: This: hit. EFFECTS: Starts destroying the maser starting with its tail.
@Override public void bump(SpaceObject object) { object.bumped(this); hit = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void bumped(SpaceObject object) {\n\t\thit = true;\t\n\t}", "private void hit(GObject element) {\r\n\t\tremove(bullet);\r\n\t\tbullet = null;\r\n\t\thitGraphic(element);\r\n\t\tif(element == dragon1) {\r\n\t\t\tlifeArray[DRAGON_ONE]--;\r\n\t\t\tif(lifeArray[DRAGON_ONE] < 1) {\r\n\t\t\t\tremov...
[ "0.7383822", "0.6422118", "0.63795435", "0.63174146", "0.62911725", "0.628205", "0.6206399", "0.6116463", "0.60540164", "0.60245705", "0.6015239", "0.60073453", "0.5985468", "0.59751385", "0.59725577", "0.5901689", "0.5886692", "0.58802223", "0.58802223", "0.5873469", "0.5847...
0.6621171
1
PURPOSE: A feedback message from the object this has collided with. MODIFIES: This: hit. EFFECTS: Starts destroying the maser starting with its tail.
@Override public void bumped(SpaceObject object) { hit = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void act() \n {\n if(timer > 0){\n timer--;\n }else{\n Greenfoot.playSound(\"explosionSound.wav\");\n getWorld().removeObject(this);\n }\n }", "public void onImpact() {\n die();\r\n this.getArrow().remove();\r\n }", ...
[ "0.58475304", "0.571281", "0.5687113", "0.568252", "0.5658683", "0.5624136", "0.56226856", "0.5620994", "0.55859715", "0.557791", "0.55734867", "0.5572777", "0.5568579", "0.5559799", "0.55352896", "0.5529884", "0.55236894", "0.55226177", "0.551896", "0.55137235", "0.5499046",...
0.54122084
28
Views Id Initialize Method
public void initialization() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); getWindow().setStatusBarColor(ContextCompat.getColor(this, R.color.color_yellow)); } // Relative...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int generateViewId() {\n return View.generateViewId();\n }", "public void initViews(){\n }", "public int getViewId() {\n return 123456;\n }", "int getViewId();", "private void initViews() {\n\n }", "private void initViews() {\n\n\t}", "@Override\r\n\tpublic void ...
[ "0.6966465", "0.6830421", "0.6812401", "0.6809415", "0.6777806", "0.6773145", "0.67652", "0.67652", "0.6675795", "0.6618107", "0.6604632", "0.65881103", "0.6573288", "0.65597415", "0.6548767", "0.64556926", "0.64394116", "0.63876677", "0.63069767", "0.6306588", "0.6288899", ...
0.0
-1
Static Data Set Method
private void setValues() { for (int i = 0; i < name.length; i++) { TagViewDetailsModel listModel = new TagViewDetailsModel(); listModel.setItemImage(image[i]); listModel.setItemName(name[i]); listModel.setDistance(distance[i]); listModel.setTags(tags[i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void InitData() {\n\t}", "public void InitData() {\n }", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "public static void populateData() {\n\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList()...
[ "0.6717392", "0.6640471", "0.66287565", "0.659686", "0.6580876", "0.65706813", "0.65370315", "0.6532918", "0.6532257", "0.6492167", "0.6492167", "0.6474632", "0.64520866", "0.64085704", "0.6403879", "0.6403879", "0.6403879", "0.6403879", "0.6403879", "0.6403879", "0.63593733"...
0.0
-1
TODO Autogenerated method stub
public void onClick(DialogInterface arg0, int arg1) { }
{ "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 void onStartTrackingTouch(SeekBar arg0) { }
{ "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
check the internet connection
public void onClick(View view) { ConnectivityManager connection = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo info = connection.getActiveNetworkInfo(); if (info !=null && info.isConnected()) { new FetchWeatherData().execute(); } else { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkInternetConnection() {\n\n ConnectivityManager connectivityManager = (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n\n return (networkInfo != null && networkInfo.isConnec...
[ "0.8217488", "0.81425387", "0.8127807", "0.81066984", "0.7939606", "0.78861034", "0.7843414", "0.7841663", "0.7837297", "0.7783308", "0.77761835", "0.7762601", "0.7725183", "0.7689549", "0.7689549", "0.7688406", "0.7674407", "0.7660648", "0.7658626", "0.7656732", "0.7641857",...
0.0
-1
TODO Autogenerated method stub
@Override public void rollback() throws TransactionException { Iterator<Buffer> it=branchBuffers.iterator(); while (it.hasNext()) { it.next().rollback(); it.remove(); } state=State.ABORTED; }
{ "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
Open connection to write data
public long insert(MyCoin myCoin) { SQLiteDatabase db = dbHelper.getWritableDatabase(); ContentValues values = new ContentValues(); values.put(KEY_ID, myCoin.getId()); values.put(KEY_NAME, myCoin.getName()); values.put(KEY_SYMBOL, myCoin.getSymbol()); values.put(KEY_RANK,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void openConnection() throws IOException {\n String path = \"D:/MSSQL-DB.txt\";\n file = new File(path);\n bufferedWriter = new BufferedWriter(new FileWriter(file, true));\n }", "private void openConnection(){}", "abstract public void openConnection();", "public void openConne...
[ "0.62915444", "0.62781584", "0.6040394", "0.5929251", "0.5891607", "0.5886095", "0.5808653", "0.57920223", "0.5751235", "0.5724619", "0.566547", "0.5648304", "0.5567603", "0.5566242", "0.55460006", "0.55161965", "0.5416348", "0.5408236", "0.5406708", "0.54065627", "0.53965", ...
0.0
-1
Test Success of getAllJobTypes method, of class JobsController.
@Test public void testGetAllJobTypes_request_OK() { JobTypes jobType1 = new JobTypes(1, "test1"); JobTypes jobType2 = new JobTypes(2, "test2"); JobTypes[] jobList = {jobType1, jobType2}; List<JobTypes> jobTypesList = new ArrayList<JobTypes>(); jobTypesList.add(jo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAddNewJobType_request_OK()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(true).when(jobTypesService).addJobType(any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/add\")\n ...
[ "0.65257764", "0.6367779", "0.62891746", "0.6220112", "0.6136727", "0.5954455", "0.59536326", "0.5851289", "0.5826291", "0.5655814", "0.56402844", "0.5625087", "0.5620035", "0.56168246", "0.5524689", "0.5503272", "0.55008143", "0.54738957", "0.54362977", "0.54163086", "0.5412...
0.8000125
0
Test Success of getJobTypesId method, of class JobsController.
@Test public void testGetJobTypesById_request_OK() { JobTypes jobType1 = new JobTypes(1, "test1"); Optional<JobTypes> jobType = Optional.of(jobType1); doReturn(jobType).when(jobTypesService).getJobType(anyInt()); try { mockMvc.perform(MockMvcRequest...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetJobTypesById_request_Not_Found()\n { \n Optional<JobTypes> emptyJobType = Optional.empty();\n \n doReturn(emptyJobType).when(jobTypesService).getJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.get(\"/job_types/{id}\",...
[ "0.67581457", "0.6753162", "0.6209252", "0.61412024", "0.6139761", "0.584728", "0.5827015", "0.5826361", "0.5821871", "0.563594", "0.55094355", "0.54990953", "0.546701", "0.5462619", "0.54343605", "0.5386943", "0.53817296", "0.53618443", "0.5353859", "0.5337673", "0.5249953",...
0.7194126
0
Test Failure of getJobTypesId method, of class JobsController.
@Test public void testGetJobTypesById_request_Not_Found() { Optional<JobTypes> emptyJobType = Optional.empty(); doReturn(emptyJobType).when(jobTypesService).getJobType(anyInt()); try { mockMvc.perform(MockMvcRequestBuilders.get("/job_types/{id}", "1") ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testDeleteJobType_request_Internal_Server_Error()\n { \n String failMessage = \"Failure Deleting\";\n \n doReturn(false).when(jobTypesService).deleteJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.delete(\"/job_types/delete/{i...
[ "0.67222434", "0.64744914", "0.64088166", "0.6402537", "0.61510015", "0.5888181", "0.5692325", "0.5685242", "0.5591631", "0.55244243", "0.5511335", "0.5497967", "0.5474748", "0.5445464", "0.54043704", "0.5398021", "0.53910285", "0.5384247", "0.5378386", "0.53666204", "0.53282...
0.68672216
0
Test Success of addNewJobType method, of class JobsController.
@Test public void testAddNewJobType_request_OK() { JobTypes jobType = new JobTypes(1, "test1"); doReturn(true).when(jobTypesService).addJobType(any(JobTypes.class)); try { mockMvc.perform(MockMvcRequestBuilders.post("/job_types/add") .content(asJ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAddNewJobType_request_Internal_Server_Error()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(false).when(jobTypesService).addJobType(any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/ad...
[ "0.7303231", "0.68526083", "0.6298814", "0.6213486", "0.60204035", "0.6004255", "0.5981106", "0.58452743", "0.5742877", "0.57194716", "0.5691005", "0.56657207", "0.562447", "0.5564696", "0.5561563", "0.5543921", "0.55380535", "0.55225205", "0.5508583", "0.5488613", "0.5462132...
0.80376107
0
Test Failure of addNewJobType method, of class JobsController.
@Test public void testAddNewJobType_request_Internal_Server_Error() { JobTypes jobType = new JobTypes(1, "test1"); doReturn(false).when(jobTypesService).addJobType(any(JobTypes.class)); try { mockMvc.perform(MockMvcRequestBuilders.post("/job_types/add") ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAddNewJobType_request_OK()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(true).when(jobTypesService).addJobType(any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/add\")\n ...
[ "0.69139063", "0.6772617", "0.6515957", "0.6375059", "0.60614914", "0.60360384", "0.60316885", "0.5903794", "0.5902879", "0.5899497", "0.588101", "0.58790183", "0.58492893", "0.58144933", "0.5753189", "0.5744658", "0.5717467", "0.5705439", "0.5688012", "0.56861496", "0.567857...
0.7579961
0
Test Success of updateJobType method, of class JobsController.
@Test public void testUpdateJobType_request_OK() { JobTypes jobType = new JobTypes(1, "test1"); doReturn(true).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class)); try { mockMvc.perform(MockMvcRequestBuilders.post("/job_types/update/{id}", "1") ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testUpdateJobType_request_Internal_Server_Error()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(false).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"...
[ "0.731495", "0.6200792", "0.6015194", "0.6008626", "0.59963673", "0.5964498", "0.5938874", "0.5909029", "0.59030306", "0.5902687", "0.58994627", "0.5898528", "0.58773965", "0.5868042", "0.58125675", "0.5779728", "0.5771242", "0.576459", "0.5706971", "0.56935847", "0.5689551",...
0.8016122
0
Test Failure of updateJobType method, of class JobsController.
@Test public void testUpdateJobType_request_Internal_Server_Error() { JobTypes jobType = new JobTypes(1, "test1"); doReturn(false).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class)); try { mockMvc.perform(MockMvcRequestBuilders.post("/job_types/updat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testUpdateJobType_request_OK()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(true).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/update/{i...
[ "0.71058017", "0.6582782", "0.64691", "0.60474235", "0.5898171", "0.5872914", "0.5865183", "0.58403796", "0.5831053", "0.58113474", "0.58005434", "0.57990843", "0.57417256", "0.5731029", "0.57281595", "0.57163304", "0.5709626", "0.5694266", "0.5666707", "0.56511605", "0.56230...
0.7742631
0
Test Success of deleteJobType method, of class JobsController.
@Test public void testDeleteJobType_request_Ok() { String successMessage = "Successfully Deleted!"; doReturn(true).when(jobTypesService).deleteJobType(anyInt()); try { mockMvc.perform(MockMvcRequestBuilders.delete("/job_types/delete/{id}", "1") ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testDeleteJobType_request_Internal_Server_Error()\n { \n String failMessage = \"Failure Deleting\";\n \n doReturn(false).when(jobTypesService).deleteJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.delete(\"/job_types/delete/{i...
[ "0.715683", "0.6744748", "0.6691305", "0.6425568", "0.6378862", "0.6352565", "0.63392735", "0.62814426", "0.62538564", "0.6245448", "0.62437516", "0.6240499", "0.62184095", "0.6194966", "0.6159681", "0.6152293", "0.611549", "0.60864717", "0.6067901", "0.6066546", "0.6066546",...
0.78713757
0
Test Failure of deleteJobType method, of class JobsController.
@Test public void testDeleteJobType_request_Internal_Server_Error() { String failMessage = "Failure Deleting"; doReturn(false).when(jobTypesService).deleteJobType(anyInt()); try { mockMvc.perform(MockMvcRequestBuilders.delete("/job_types/delete/{id}", "1") ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testDeleteJobType_request_Ok()\n { \n String successMessage = \"Successfully Deleted!\";\n \n doReturn(true).when(jobTypesService).deleteJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.delete(\"/job_types/delete/{id}\", \"1\")...
[ "0.7361193", "0.6608237", "0.6588744", "0.64553446", "0.64453", "0.62596697", "0.6234099", "0.61830884", "0.6176807", "0.6164864", "0.61341757", "0.6128682", "0.6124879", "0.61164254", "0.61092645", "0.60801274", "0.60801274", "0.60668206", "0.60596925", "0.60514665", "0.6019...
0.77125216
0
Helper Method to turn Objects into JSON String
public static String asJsonString(final Object obj) { try { return new ObjectMapper().writeValueAsString(obj); } catch (JsonProcessingException e) { throw new RuntimeException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String toJSONString(Object data);", "String toJSON();", "public String toJson(Object obj){\n return new Gson().toJson(obj);\n }", "public static String toJson(Object obj) {\n\t\treturn toJson(obj, true, true);\n\t}", "private static String asJsonString(final Object obj) {\n try {\n ...
[ "0.7757787", "0.7558377", "0.74155724", "0.7321071", "0.73005325", "0.72601914", "0.7208921", "0.71887726", "0.7183577", "0.7102347", "0.70956045", "0.7048678", "0.7045041", "0.7014228", "0.70074254", "0.6994777", "0.69713193", "0.69303274", "0.69260216", "0.69177437", "0.691...
0.68581057
27
TODO Autogenerated method stub
@Override public void onClick(DialogInterface dialog, int which) { }
{ "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
@Override public void onClick(DialogInterface dialog, int which) { SparseBooleanArray selected = adapter .getSelectedIds(); for (int i = (selected.size() - 1); i >= 0; i--) { ...
{ "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
Get the name of the method
@Override public String execute(final HttpServletRequest request, final HttpServletResponse response) throws ControllerException { int lastSlash = request.getRequestURI().lastIndexOf("/"); String methodName = request.getRequestURI().substring(lastSlash + 1); // Find the target method Method target...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getName() {\n return method.getName();\n }", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "String getMethodName();", "String getMethodName();", "public String getMet...
[ "0.8824914", "0.87628996", "0.87628996", "0.87628996", "0.87628996", "0.8543785", "0.8543785", "0.8291258", "0.8290031", "0.8019511", "0.7946902", "0.7946902", "0.79313284", "0.79243344", "0.7915453", "0.79116535", "0.79116535", "0.78989947", "0.78989947", "0.7856308", "0.785...
0.0
-1
Gets the Twitter user.
protected String getTwitterUser(final HttpServletRequest request, final HttpServletResponse response) { return (String) request.getSession().getServletContext() .getAttribute(ContextListener.TWITTER_USER_NAME); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private User getUser() {\r\n\t\tUserService userService = UserServiceFactory.getUserService();\r\n\t\treturn userService.getCurrentUser();\r\n\t}", "public Twitter getTwitter() {\n\t\treturn twitter;\n\t}", "public static String getUser() {\n return user;\n }", "public final User getUser() {\t\r\n\...
[ "0.6773586", "0.6699177", "0.6599599", "0.6566446", "0.65518343", "0.6473979", "0.64606124", "0.64606124", "0.64544445", "0.6445757", "0.6386377", "0.6386332", "0.63578606", "0.63558304", "0.635552", "0.63293165", "0.6318751", "0.6318751", "0.6318751", "0.63103193", "0.631031...
0.73190266
0
Checks if there are any errors.
protected boolean errors() { return !errors.isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasErrors();", "boolean hasErrors();", "boolean hadErrors();", "public boolean hasError();", "boolean hasError();", "boolean hasError();", "boolean hasError();", "public boolean hasError() {\n\t\treturn results.getErrors().contains( \"ERROR\") ;\n\t}", "@Override\r\n\tpublic boolean ...
[ "0.79171723", "0.786163", "0.78061", "0.7672539", "0.7559598", "0.7559598", "0.7559598", "0.74922085", "0.7444641", "0.7420365", "0.7367534", "0.73522145", "0.7334491", "0.7185455", "0.7176441", "0.7150559", "0.7119236", "0.71097887", "0.70836604", "0.7069981", "0.70257634", ...
0.74467885
8
TODO Autogenerated method stub
@Override public Object getItem(int position) { return data.get(position); }
{ "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
@Override public long getItemId(int position) { return position; }
{ "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
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_donors_list, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79041183", "0.7805934", "0.77659106", "0.7727251", "0.7631684", "0.7621701", "0.75839096", "0.75300384", "0.74873656", "0.7458051", "0.7458051", "0.7438486", "0.742157", "0.7403794", "0.7391802", "0.73870087", "0.7379108", "0.7370295", "0.7362194", "0.7355759", "0.73454577...
0.0
-1
Attempted to merge sorted arrays. Merely encapsulates within a FHbinheap
public static void mergeSortedArrays(final int MEM_SIZE, ArrayList<Integer []> inputChunks, HeapTuple[] minHeap, String outfile, final boolean ENABLE_DEBUG){ FileOutputStream out; try{ out = new FileOutputStream(outfile); } catch (FileNotFoundException e){ System...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mergesort()\n { sort(this.heap, 0, heap.size()-1);\n }", "private void merge() {\n for (int i = low; i<high; i++){\n temparray[i]=nums[i];\n }\n\n int i = low;\n int j = middle;\n //index of the original array for which we are making compare\n ...
[ "0.70106876", "0.67598933", "0.66796666", "0.64281726", "0.63929385", "0.6382088", "0.63804173", "0.63618594", "0.6268902", "0.6254369", "0.62495714", "0.6219984", "0.62156737", "0.6207015", "0.62057847", "0.62036425", "0.6189196", "0.61740255", "0.6169393", "0.6152793", "0.6...
0.7555624
0
No necessary function, as my attempt at the sort involved encapsulating everything within a FHbinheap
public static ArrayList<HeapTuple[]> getHeapsUsed(){ return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void heapSort() {\n\n\t\tint queueSize = priorityQueue.size();\n\n\t\tfor (int j = 0; j < queueSize; j++) {\n\n\t\t\theapified[j] = binaryHeap.top(priorityQueue);\n\t\t\tbinaryHeap.outHeap(priorityQueue);\n\n\t\t}\n\n\t}", "private HuffmanTreeNode[] heapify(int freq[][]) {\n\t\tHuffmanTreeNode[] heap = n...
[ "0.73422855", "0.67022717", "0.6692976", "0.66736996", "0.66205424", "0.66154593", "0.661041", "0.657326", "0.6545446", "0.652097", "0.64532936", "0.6416007", "0.6411705", "0.63579273", "0.63524765", "0.6346568", "0.63374406", "0.6332865", "0.63274974", "0.63251376", "0.63197...
0.0
-1
Get context variables for DiplomaActivity.
void getContext() { playerName = getIntent().getExtras().getString("player_name"); Log.i("DiplomaActivity", "getContext - Player name: " + playerName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Map<String, Object> getContext();", "Context getContext();", "public String getContext() { return context; }", "public String getContext() {\n\t\treturn context;\n\t}", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "publi...
[ "0.68264323", "0.6158254", "0.6106644", "0.59902734", "0.59897465", "0.59897465", "0.59897465", "0.59837973", "0.5960218", "0.5950907", "0.5950907", "0.59234315", "0.59053916", "0.5894246", "0.5847632", "0.5847632", "0.5832889", "0.58237535", "0.58214027", "0.5810252", "0.579...
0.630678
1
Stops music and go back to the main menu.
@Override public void onBackPressed() { mediaPlayer.pause(); Intent intent = new Intent(this, MainMenuActivity.class); startActivity(intent); finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop() {\n\t\tmusic.stop();\n\t}", "public static void stopMusic() {\n\t\tcurrentMusic.stop();\n\t}", "public static void resumeMusic() {\n\t\t\n\t\tif (currentMusic == null) {\n\t\t\tplayMusic(\"mainMenuMusic\", 0.1f);\n\t\t} else {\n\t\t\tcurrentMusic.start();\n\t\t}\n\t}", "void stopMusic();",...
[ "0.75043285", "0.74709463", "0.7234132", "0.72125614", "0.72031766", "0.71671295", "0.71645284", "0.71231055", "0.70154667", "0.7013585", "0.69966865", "0.6896069", "0.6893571", "0.6893044", "0.6871782", "0.67413944", "0.6725896", "0.6711774", "0.6636163", "0.6631252", "0.662...
0.70911926
8
try until thread is joined
@Override public void surfaceDestroyed(SurfaceHolder surfaceHolder) { boolean retry = true; while (retry) { try { thread.join(); retry = false; } catch (InterruptedException e) { } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void join() {\n try {\n thread.join();\n } catch(Exception e) {}\n }", "public void Wait(){\r\n\t\ttry { worker.join(); }\r\n\t\tcatch (InterruptedException e) { e.printStackTrace(); }\r\n\t}", "public void waitFinish() throws InterruptedException {\r\n\t\t\ttThread.join();\r...
[ "0.7119806", "0.6790014", "0.67499673", "0.67085606", "0.6658221", "0.6622597", "0.65755296", "0.6524125", "0.6519808", "0.6446854", "0.6444404", "0.6390109", "0.6389411", "0.63855374", "0.6380154", "0.6363778", "0.6349901", "0.6345987", "0.63248354", "0.63230526", "0.6224808...
0.0
-1
if upper left corner, close else if edge, move in that direction else print touch location
@Override public boolean onTouchEvent(MotionEvent event) { int edgeDist = 128; boolean debugging = false; if (debugging) { if (event.getAction() == MotionEvent.ACTION_DOWN) { if (event.getY() < 50 && event.getX() < 50) { thread.setRunning(fal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loopThroughEdge()\n {\n int margin = 2;\n\n if (getX() < margin) //left side\n { \n setLocation(getWorld().getWidth()+ margin, getY());\n }\n else if (getX() > getWorld().getWidth() - margin) //right side\n {\n setLocation(margin, ge...
[ "0.592644", "0.5818138", "0.5808794", "0.5740038", "0.5661899", "0.56437004", "0.5595255", "0.55883455", "0.5501436", "0.55000246", "0.549225", "0.5470997", "0.544839", "0.54369277", "0.54349494", "0.5415808", "0.54030365", "0.5399155", "0.53982365", "0.5385785", "0.537938", ...
0.53411055
28
Authenticate the passed credentials
public void authenticate(LoginCredentials credentials) throws LoginException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void authenticate(String user, String pass) {\n }", "LoggedUser authenticate(@Valid AccountCredentials credentials) throws IOException;", "boolean authenticate(String userName, String password);", "public User doAuthentication(String account, String password);", "AuthenticationToken authenticate...
[ "0.7575561", "0.7498229", "0.7381019", "0.7239572", "0.7120658", "0.70740193", "0.6872896", "0.6857232", "0.68255216", "0.6775876", "0.67446715", "0.6742014", "0.6730225", "0.6723617", "0.6722027", "0.6707477", "0.66759163", "0.66592294", "0.66322", "0.6597099", "0.6554186", ...
0.8210606
0
Get markup advice to include in the login screen
public String getLoginAdvice(LoginCredentials credentials);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}", "public String toLogin() {\r\n\t\treturn \"/login.xhtml\";\r\n\t}", "public interface LoginDataProviders extends BaseDataProvider {\n\n String ALREADY_HAVE_PASSWORD = \"Already have a password?\";\n String FIRST_TIME_HERE = \"First t...
[ "0.61686397", "0.6139349", "0.60108286", "0.588537", "0.58247113", "0.5690155", "0.5686569", "0.5657941", "0.563745", "0.5616823", "0.5565706", "0.55616784", "0.55531603", "0.55499756", "0.5538451", "0.5529941", "0.54889077", "0.5478562", "0.5453337", "0.5437033", "0.5434285"...
0.5776795
5
Get a render engine possibly based on the request
LoginRenderEngine getRenderEngine(String context, HttpServletRequest request);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected ITemplateEngine getTemplateEngine( HttpServletRequest request )\n {\n String templateEngineId = getTemplateEngineId( request );\n if ( StringUtils.isNotEmpty( templateEngineId ) )\n {\n return TemplateEngineInitializerRegistry.getRegistry().getTemplateEngine( templateEn...
[ "0.70554453", "0.65560466", "0.6175558", "0.6040514", "0.6037702", "0.5989828", "0.5966765", "0.5965634", "0.5755103", "0.5752732", "0.57128954", "0.56576854", "0.5605472", "0.5597473", "0.55953395", "0.5520046", "0.5512907", "0.54826915", "0.548079", "0.5457483", "0.5436629"...
0.73900056
0
Indicate whether the service has any markup advice to include in the login screen
public boolean hasLoginAdvice();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasLoginRequest();", "public boolean shouldLogIn() {\n // Check if the page requires a login\n HttpSession session = (HttpSession) _currentSession.get();\n if (session == null) {\n return true;\n }\n HashMap inputParameters = (HashMap) session.getAttribute(\"_inputs\...
[ "0.63053775", "0.6252177", "0.6229708", "0.62280923", "0.62246054", "0.6126651", "0.60499", "0.60484266", "0.600344", "0.6002446", "0.59484535", "0.59484535", "0.5923742", "0.5865247", "0.5818042", "0.5818042", "0.58005047", "0.5733631", "0.57242864", "0.5706476", "0.5704023"...
0.73287356
0
Add a render engine to the available render engines.
void addRenderEngine(String context, LoginRenderEngine vengine);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void registerRenderer() {}", "public void registerRenderer() {}", "public void setEngine(Engine engine);", "void updateRenderEngine() {\n if (renderEngine == null)\n renderEngine = this.game.p;\n }", "public void addRenderer(\r\n RendererBean renderer)\r\n {\r\n String co...
[ "0.6079093", "0.6079093", "0.58512604", "0.58507854", "0.5748265", "0.5714103", "0.5650579", "0.55841935", "0.5580882", "0.557505", "0.5560359", "0.5437436", "0.54160285", "0.53886306", "0.53276044", "0.52756053", "0.52687013", "0.52597934", "0.521597", "0.51511717", "0.51163...
0.7244118
0
Remove a render engine from the avaialble render engines
void removeRenderEngine(String context, LoginRenderEngine vengine);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void removeRenderer(Renderer renderer) { renderers.remove(renderer); }", "public void removeRenderer(Integer idGCodeProvider) throws GkException{\n\t\tRS274GCodeRenderer renderer = getRendererByGCodeProvider(idGCodeProvider);\n\t\texecutionService.removeExecutionListener(renderer);\n\t\tcacheRenderer.remo...
[ "0.74333805", "0.6418853", "0.6268817", "0.6040739", "0.5987999", "0.59618783", "0.5955641", "0.5889864", "0.5803404", "0.5766176", "0.5760306", "0.5751501", "0.57469904", "0.57305837", "0.5729722", "0.5597547", "0.55933404", "0.5567263", "0.55480236", "0.55008507", "0.544514...
0.79954106
0
Reference to the name of a particular user through userID
@Override public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) { mDatabaseUserReference.child(userID).child("name").setValue(username); // Reference to the IMAGE of a particular user through userID // Can't pass imageUri ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUserName(int userId);", "String getUserName(String userId);", "@Override\n\tpublic String getRealNameByUserId(String userId) {\n\t\tMap<String,Object> map = new HashMap<String, Object>();\n\t\t//Map<String,Object> reqs = new HashMap<String, Object>();\n\t\tmap.put(\"userId\", userId);\n\t\tStr...
[ "0.7556332", "0.75550115", "0.74310535", "0.73496485", "0.7143594", "0.70481074", "0.696089", "0.696089", "0.696089", "0.68896", "0.68626916", "0.6826401", "0.67660886", "0.6745454", "0.67442477", "0.6743004", "0.6729762", "0.6729762", "0.6729762", "0.6699829", "0.6656908", ...
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() { jPanel1 = new javax.swing.JPanel(); jButton2 = new javax.swing.JButton(); jLabel3 = new javax.swing.JLabel(); jPanel2 = new ja...
{ "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.731952", "0.72909003", "0.72909003", "0.72909003", "0.72862417", "0.7248404", "0.7213685", "0.72086793", "0.7195972", "0.71903807", "0.71843296", "0.7158833", "0.71475875", "0.70933676", "0.7081167", "0.7056787", "0.69876975", "0.6977383", "0.6955115", "0.6953839", "0.6945...
0.0
-1
Returns true if given hex is clickable and has a highlight and callback attached.
public boolean isClickable(Hex hex) { for (ClickableHighlightRequest request : requests) { for (Hex rhex : request.getRegion()) { if (rhex.equals(hex)) return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isHighlighted();", "protected boolean hexClicked(Point hex, MouseEvent e)\n {\n int whichTool = tools.selectedTool();\n LinkedList\t\thexes = new LinkedList();\n Point\t\t\tthisHex;\n \n // Add all the affected hexes to our LinkedList\n ...
[ "0.6364588", "0.6335907", "0.61364365", "0.5764568", "0.57623893", "0.564852", "0.561754", "0.55826503", "0.5565043", "0.55497855", "0.5538192", "0.5535941", "0.5506868", "0.54889375", "0.5479708", "0.5470898", "0.54502827", "0.53900325", "0.53851974", "0.533804", "0.5329689"...
0.76112396
0
Shows the shadow at given tile.
private void showShadow(Tile tile) { hoveredHex = tile.hex; hoverShadow.transform.setParent(tile.transform); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void showTownMapScreen(LandMapTile tile, Constants.Dir dir) {\n townMapScreen.setupTown(tile, dir);\n showScreen(townMapScreen);\n }", "public void display() {\n shadow.display();\r\n strokeWeight(strokeWeight);\r\n fill(boxColour);\r\n r...
[ "0.6002332", "0.5833643", "0.5683152", "0.5618825", "0.56183475", "0.55764645", "0.5449408", "0.54362863", "0.543007", "0.54243636", "0.53172034", "0.5312905", "0.51996094", "0.51622546", "0.514792", "0.5146119", "0.513557", "0.51318437", "0.51066965", "0.5090544", "0.5089572...
0.8404985
0
Creates a new instance of LoginBean
public LoginBean() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public loginBean() {\n }", "public LoginBean() {\r\n \r\n \r\n }", "public LoginFormBean() {\r\n \r\n }", "public LoginActionBean() {\n\t\tthis(new ByNameHibernateRecordFetcherFactory(null).newInstance(new ReaderConstraint(\n\t\t\tUser.class)));\n\t}", "public ExternalLoginMana...
[ "0.79463995", "0.78893423", "0.73518366", "0.67654103", "0.65356725", "0.6477261", "0.6362951", "0.63498324", "0.6270335", "0.6270335", "0.6254965", "0.62027246", "0.6183065", "0.61760646", "0.6149468", "0.6116354", "0.60935503", "0.60899353", "0.60864687", "0.6080295", "0.59...
0.80461526
0
Constructor for Favorites page
public Favorites_Adapter(Context context, ArrayList<POJOStoreInfo> FavouriteStoreDetails,String classname,String pageflag){ FavoritesInflater = LayoutInflater.from(context); this.FavoritesContext = context; this.mFavouriteStoreList = FavouriteStoreDetails; imageLoader=new ImageLoader(context); this.mClas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FavoriteFragment() {\n }", "private void initListFavorite() {\n favoritesList = mApiService.getFavorites();\n mRecyclerView.setAdapter(new MyNeighbourRecyclerViewAdapter(favoritesList, this));\n }", "public Profile(String username, String password) {\n favorites = new ArrayLis...
[ "0.72284704", "0.67564994", "0.66796637", "0.6607118", "0.6434753", "0.6430092", "0.64004797", "0.61623424", "0.61597484", "0.61531526", "0.61416036", "0.6128898", "0.60575044", "0.6036238", "0.59008265", "0.5842841", "0.578553", "0.5769363", "0.57092655", "0.5695374", "0.565...
0.71366787
1
Uniform weights should be the same as the unparameterized basic RWR
@Test public void testUniformRWR() { log.debug("Test logging"); int maxT = 10; AnnotatedGraph<String> g = brGraphs.get(0); TreeMap<String,Double> startVec = new TreeMap<String,Double>(); startVec.put("r0",1.0); Map<String,Double> baseLineVec = myRWR(startVec,g,maxT); TreeMap<String,Double>uniformWe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setWeightsUniformly(RandomDataImpl rnd, double eInit) {\n\t\tfor (int i = 0; i < weights.length; i++) {\t\t\n\t\t\tweights[i] = rnd.nextUniform(-eInit, eInit);\n\t\t}\n\t}", "public void setWeights(float[] w) {\n _w1D = w;\n _weights = true;\n }", "public void initWeights(){\r\n Ra...
[ "0.68011206", "0.66114897", "0.6562694", "0.64543724", "0.6448448", "0.63767195", "0.63720155", "0.63495463", "0.6346072", "0.63140905", "0.6310233", "0.62901336", "0.6266119", "0.6265715", "0.62525946", "0.6243307", "0.62184024", "0.61482084", "0.6143787", "0.609", "0.603842...
0.74902624
0
Creates the menu and load already registered providers.
public AutoAnswerMenu() { super(GuiActivator.getResources() .getI18NString("service.gui.AUTO_ANSWER")); loadSkin(); registerMenuItems(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initializeMenuItems() {\n\t\tuserMenuButton = new MenuButton();\n\t\tmenu1 = new MenuItem(bundle.getString(\"mVmenu1\")); //\n\t\tmenu2 = new MenuItem(bundle.getString(\"mVmenu2\")); //\n\t}", "public void init() {\n\t\tMenu menu = new Menu();\n\t\tmenu.register();\n\n\t\t// Application.getInstance()...
[ "0.66962564", "0.65952164", "0.6505404", "0.63526756", "0.6267206", "0.62666225", "0.6247558", "0.6239467", "0.6215153", "0.6213961", "0.61934495", "0.6183891", "0.6153334", "0.6099423", "0.60942876", "0.60857785", "0.60761374", "0.605075", "0.6048744", "0.6022227", "0.602089...
0.0
-1
Registers all menu items.
public static void registerMenuItems(SIPCommMenu parentMenu) { if(protocolProviderListener == null) { protocolProviderListener = new ProtocolProviderListener(parentMenu); GuiActivator.bundleContext .addServiceListener(protocolProviderListener); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void registerExtendMenuItem(){\n for(int i = 0; i < itemStrings.length; i++){\n inputMenu.registerExtendMenuItem(itemStrings[i], itemdrawables[i], itemIds[i], extendMenuItemClickListener);\n }\n }", "public void initializeMenuItems() {\n\t\tuserMenuButton = new MenuButton();...
[ "0.7233226", "0.6816049", "0.64931786", "0.62875503", "0.62498415", "0.62137425", "0.61147714", "0.6095786", "0.6094562", "0.60895425", "0.6083763", "0.6075153", "0.60549796", "0.60358596", "0.6029716", "0.60162914", "0.5967459", "0.5965404", "0.59482676", "0.59424114", "0.59...
0.63891095
3
Count number of Auto answer menu items.
public static int getAutoAnswerItemCount(SIPCommMenu menu) { int count = 0; for(int i = 0; i < menu.getItemCount(); i++) { if(menu.getItem(i) instanceof AutoAnswerMenuItem) count++; } return count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumOfMenuItems(){\n return numOfMenuItems;\n }", "public void numberOfChoices() {\n\t\tcommon.waitForElement(mcqChoices, 60);\n\t\tchoicesinMCQ = mcqChoices.getText();\n\t\tarr = choicesinMCQ.split(\"\\\\W+\");\n\t\tnumberOfChoicesinMCQ = arr[3];\n\t\tlastOption = numberOfChoicesinMCQ.charA...
[ "0.71848017", "0.69195026", "0.67689866", "0.6759577", "0.6759577", "0.6759577", "0.6751791", "0.67471415", "0.67471415", "0.6678787", "0.66531813", "0.65955603", "0.65955603", "0.65892154", "0.65218717", "0.64898235", "0.64690423", "0.6403483", "0.63663226", "0.6364526", "0....
0.8080705
0
Return auto answer menu item at index.
public static AutoAnswerMenuItem getAutoAnswerItem(SIPCommMenu menu, int index) { int currentIx = 0; for(int i = 0; i < menu.getItemCount(); i++) { if(menu.getItem(i) instanceof AutoAnswerMenuItem) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAnswer(int index){\n return answerList.get(index);\n }", "public String getQuestion(int index){\n return questionList.get(index);\n }", "int getItem(int index);", "private HelpTopic getItem(int index) {\n return index < 0 ? null : history.get(index);\n }", "pu...
[ "0.7102154", "0.6458532", "0.61829996", "0.61470205", "0.60854864", "0.5982238", "0.5958784", "0.5935207", "0.59075683", "0.59059054", "0.5852263", "0.5843803", "0.5823967", "0.58121353", "0.578826", "0.5742569", "0.5716899", "0.5661296", "0.5655474", "0.56553197", "0.5641407...
0.7848439
0
Adds a menu item for the account given by protocolProvider.
private static void addAccount( final ProtocolProviderService protocolProvider, final SIPCommMenu parentMenu) { if(!SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { public void run() { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void addAccountInternal(\n ProtocolProviderService protocolProvider,\n SIPCommMenu parentMenu)\n {\n OperationSetBasicAutoAnswer opSet = protocolProvider\n .getOperationSet(OperationSetBasicAutoAnswer.class);\n\n if(opSet == null)\n {\n ret...
[ "0.72194886", "0.6587967", "0.64619887", "0.6430065", "0.62478554", "0.62165314", "0.6180759", "0.61762685", "0.6108966", "0.60473484", "0.60325557", "0.60172045", "0.5960659", "0.5868492", "0.58473766", "0.5830599", "0.5820234", "0.5794879", "0.57606703", "0.57456857", "0.57...
0.7227807
0
Updates item text and icon.
private static void updateItem(AutoAnswerMenuItem item, boolean isGlobal) { if(item == null) return; if(isGlobal) { item.setText(GuiActivator.getResources().getI18NString( "service.gui.AUTO_ANSWER")); item.setIcon(new I...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void updateItem(T item, boolean empty) {\n\n // Do the normal Cell.updateItem() things\n super.updateItem(item, empty);\n\n // If the item in question exists, use its name as text instead\n if (item != null) {\n ...
[ "0.6840694", "0.6626623", "0.6375203", "0.6364305", "0.6335272", "0.6299317", "0.6282981", "0.6153384", "0.61399734", "0.60164046", "0.59791136", "0.59661984", "0.59558445", "0.5939963", "0.5924246", "0.58004904", "0.57813036", "0.5771306", "0.5767226", "0.57547665", "0.57525...
0.67626023
1
Adds a menu item for the account given by protocolProvider.
private static void addAccountInternal( ProtocolProviderService protocolProvider, SIPCommMenu parentMenu) { OperationSetBasicAutoAnswer opSet = protocolProvider .getOperationSet(OperationSetBasicAutoAnswer.class); if(opSet == null) { return; }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void addAccount(\n final ProtocolProviderService protocolProvider,\n final SIPCommMenu parentMenu)\n {\n if(!SwingUtilities.isEventDispatchThread())\n {\n SwingUtilities.invokeLater(new Runnable()\n {\n public void run()\n ...
[ "0.72268426", "0.65891635", "0.64622265", "0.6431279", "0.62487155", "0.6216905", "0.61812", "0.6177041", "0.61105776", "0.60489833", "0.60333806", "0.6017864", "0.59618604", "0.58699983", "0.5848248", "0.5832289", "0.5822023", "0.57962435", "0.576241", "0.5746804", "0.574680...
0.7218131
1
Remove menu item for the account given by protocolProvider.
public static void removeAccount( final ProtocolProviderService protocolProvider, final SIPCommMenu parentMenu) { if(!SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { public void run() { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeAccount(ProtocolProviderService protocolProvider)\n {\n Component c = (Component) this.accountSelectors\n .get(protocolProvider.getAccountID());\n \n this.remove(c);\n }", "void removeMenuItem(int itemId, String itemName);", "<T> void removeInstallItem(Cal...
[ "0.6994609", "0.68846726", "0.61509174", "0.6100023", "0.6053029", "0.60394585", "0.5985198", "0.5802081", "0.5709053", "0.5704449", "0.5677756", "0.5675624", "0.5665343", "0.56210625", "0.5618312", "0.56174684", "0.56130904", "0.5569753", "0.55619556", "0.5554812", "0.553636...
0.7642089
0
Loads menu item icons.
public void loadSkin() { this.setIcon(new ImageIcon( ImageLoader.getImage(ImageLoader.CALL_16x16_ICON))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setIconsMenus() {\n ImageIcon iconNew = new javax.swing.ImageIcon(getClass().getResource(\"/image/novo.png\"));\n ImageIcon iconSearch = new javax.swing.ImageIcon(getClass().getResource(\"/image/procurar.19px.png\"));\n\n JMenuItem[] miNew = new JMenuItem[]{miModuloNovo, miIrradia...
[ "0.7066193", "0.68931264", "0.68900996", "0.6693463", "0.6635975", "0.65678394", "0.64856607", "0.63316244", "0.62814134", "0.6258062", "0.6246002", "0.6228387", "0.6221887", "0.6195968", "0.6138439", "0.612946", "0.61285394", "0.6061562", "0.59314096", "0.58737785", "0.58354...
0.53949434
64
Check whether any auto answer option is enabled for a protocol.
private static boolean isAutoAnswerEnabled( ProtocolProviderService providerService) { OperationSetBasicAutoAnswer opset = providerService .getOperationSet(OperationSetBasicAutoAnswer.class); OperationSetAdvancedAutoAnswer opSetAdvanced = providerService .getOperation...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasProtocol();", "public boolean isSetProtocol()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(PROTOCOL$0) != null;\n }\n }", "public boolean hasProtocol() {\n return protocolBuilder_ != null || pr...
[ "0.68189025", "0.63825125", "0.626645", "0.6248739", "0.61611336", "0.6050192", "0.5990155", "0.59483886", "0.59144974", "0.5905012", "0.58650076", "0.58650076", "0.58650076", "0.58650076", "0.58650076", "0.58650076", "0.58589673", "0.5819276", "0.58101827", "0.58014995", "0....
0.6982833
0
Returns the icon for the provider.
private static Image getIconForProvider( ProtocolProviderService providerService, Image customProviderImage, ImageObserver imageObserver) { Image left = isAutoAnswerEnabled(providerService) ? ImageLoader.getImage(ImageLoader.AUTO_ANSWER_CHECK) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getIcon();", "java.lang.String getIcon();", "public String getIcon() {\n\t\treturn \"icon\";\n\t}", "String getIcon();", "String getIcon();", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {...
[ "0.7281965", "0.7281965", "0.7263482", "0.7213776", "0.7213776", "0.7115718", "0.7115718", "0.7115718", "0.7115718", "0.7056175", "0.7056175", "0.7040665", "0.7040665", "0.70120335", "0.6975135", "0.6840423", "0.6828599", "0.6824125", "0.6815754", "0.67339075", "0.6733004", ...
0.657147
34
Implements the ServiceListener method. Verifies whether the passed event concerns a ProtocolProviderService and adds the corresponding UI controls in the menu.
public void serviceChanged(ServiceEvent event) { ServiceReference serviceRef = event.getServiceReference(); // if the event is caused by a bundle being stopped, we don't want to // know if (serviceRef.getBundle().getState() == Bundle.STOPPING) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void serviceChanged(ServiceEvent event)\n {\n Object service = SystrayActivator.bundleContext\n .getService( event.getServiceReference());\n \n if (! (service instanceof ProtocolProviderService))\n return;\n \n ProtocolProviderServi...
[ "0.6281164", "0.6073831", "0.59160167", "0.5786952", "0.57254726", "0.5652154", "0.5582917", "0.5523375", "0.54359424", "0.54140264", "0.5394528", "0.53598964", "0.5354368", "0.53330797", "0.5307316", "0.5303124", "0.52982795", "0.5280763", "0.5265187", "0.52465916", "0.52359...
0.66084975
0
Init the menu item.
AutoAnswerMenuItem(ProtocolProviderService provider, SIPCommMenu parentMenu) { this(provider, getItemDisplayName(provider), getIconForProvider(provider, null, parentMenu), parentMenu); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initMenu(){\n\t}", "public void initializeMenuItems() {\n\t\tuserMenuButton = new MenuButton();\n\t\tmenu1 = new MenuItem(bundle.getString(\"mVmenu1\")); //\n\t\tmenu2 = new MenuItem(bundle.getString(\"mVmenu2\")); //\n\t}", "public ItemMenu() {\n super(null, null);\n }", "private void ...
[ "0.77409047", "0.74010456", "0.7360138", "0.7176569", "0.7120793", "0.7012472", "0.70108163", "0.69970274", "0.6976671", "0.6974098", "0.6841111", "0.6824162", "0.6775618", "0.6775618", "0.67703915", "0.67220646", "0.6721472", "0.6721472", "0.6721472", "0.6704169", "0.6666765...
0.0
-1
Creates the menu item.
private AutoAnswerMenuItem(ProtocolProviderService provider, String displayName, Image onlineImage, SIPCommMenu parentMenu) { super( displayName, (onlineIm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private MenuBar.MenuItem createMenuItem(View vista, String menuAddress, Resource menuIcon) {\n MenuBar.MenuItem menuItem;\n MenuCommand cmd = new MenuCommand(menuBar, vista);\n menuItem = menuBar.addItem(menuAddress, menuIcon, cmd);\n menuItem.setStyleName(AMenuBar.MENU_DISABILITATO);\n...
[ "0.72420895", "0.7164787", "0.7159599", "0.714981", "0.7087085", "0.7042927", "0.69957864", "0.69768023", "0.69540685", "0.6916642", "0.68374336", "0.68122834", "0.6798045", "0.6783294", "0.6721755", "0.66941196", "0.6683734", "0.66650367", "0.665419", "0.66250354", "0.660068...
0.0
-1
Returns the protocol provider associated with this menu.
public ProtocolProviderService getProtocolProvider() { return providerService; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProtocolProviderService getProtocolProvider() {\n return mPPS;\n }", "public ProtocolProviderService getParentProvider()\n {\n return provider;\n }", "public Object getDescriptor()\n {\n return protocolProvider;\n }", "public String getProvider() {\n\t\treturn provi...
[ "0.7417288", "0.69678617", "0.6720142", "0.64515495", "0.6438636", "0.64174855", "0.6384317", "0.63237685", "0.6315966", "0.62615466", "0.6242925", "0.6214876", "0.6186996", "0.61744505", "0.6155678", "0.6143548", "0.6080935", "0.60690063", "0.6061778", "0.60565424", "0.60451...
0.76544607
0
When action is performed on the item show a dialog.
public void actionPerformed(ActionEvent e) { new AutoAnswerOptionsDialog(providerService, parentMenu) .setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickOpenEditDialog(Item item){\n /** Store as public reference */\n this.item = item;\n dialogNewItem.show();\n }", "@OnClick(R.id.converter_sale_or_purchase_cv)\n public void chooseAction() {\n mDialog = new DialogList(mContext,\n mActionDialogTitle,...
[ "0.7062646", "0.685634", "0.66970885", "0.66366595", "0.6623907", "0.66118735", "0.65774584", "0.6501071", "0.6462105", "0.64474094", "0.64218616", "0.6400045", "0.6391966", "0.6385302", "0.636065", "0.6351958", "0.6343696", "0.6341571", "0.6336387", "0.63326067", "0.6331985"...
0.0
-1
Returns the display name to be used for this provider.
private static String getItemDisplayName( ProtocolProviderService provider) { if(ConfigurationUtils.isAutoAnswerDisableSubmenu()) return GuiActivator.getResources() .getI18NString("service.gui.AUTO_ANSWER") + " - " + provide...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "public String getDisplayName()\n {\n return getString(\"DisplayNa...
[ "0.8238646", "0.8238646", "0.8238646", "0.8238646", "0.8238646", "0.8238646", "0.8063449", "0.80172664", "0.80172664", "0.8002272", "0.795431", "0.79166037", "0.79166037", "0.79166037", "0.79166037", "0.79166037", "0.79166037", "0.79001653", "0.77790403", "0.7768028", "0.7759...
0.68505484
89
A bug in macosx leaking instances of Menu and MenuItems, we prevent leaking Protocol Providers.
public void clear() { providerService = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected MenuManager createMenuManager() {\n\t\treturn null;\n\t}", "public static void registerMenuItems(SIPCommMenu parentMenu)\n {\n if(protocolProviderListener == null)\n {\n protocolProviderListener = new ProtocolProviderListener(parentMenu);\n GuiActivat...
[ "0.60806125", "0.6035443", "0.59159917", "0.57430935", "0.5660453", "0.56416196", "0.5627644", "0.5598438", "0.5574291", "0.5573283", "0.55295426", "0.55179024", "0.55073076", "0.5490368", "0.5466114", "0.54540837", "0.54164034", "0.53993505", "0.53987736", "0.53986096", "0.5...
0.0
-1
Creates separator with text.
private JPanel getTitlePanel(String title) { JLabel label = new JLabel(title); label.setBorder(new EmptyBorder(0, 0, 0, 10)); label.setFont(UIManager.getFont("TitledBorder.font")); label.setForeground(UIManager .getColor("TitledBorder.titleColor"))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getSeparator();", "private Line createSeparator(int length){\n\n Line sep = new Line();\n sep.setEndX(length);\n sep.setStroke(Color.DARKGRAY);\n return sep;\n\n }", "private Label createSeparator(Composite parent) {\n \t\tLabel separator= new Label(parent, SWT.NONE);\n \t...
[ "0.67210346", "0.6578373", "0.65726376", "0.64019775", "0.63863295", "0.63254076", "0.6316284", "0.6247423", "0.623313", "0.6163188", "0.6074932", "0.59806585", "0.5942627", "0.59178275", "0.5904211", "0.59018236", "0.5885783", "0.5729376", "0.56969464", "0.5682839", "0.56672...
0.0
-1
Populate values from opset to local components.
private void loadValues() { OperationSetBasicAutoAnswer opset = providerService .getOperationSet(OperationSetBasicAutoAnswer.class); OperationSetAdvancedAutoAnswer opSetAdvanced = providerService .getOperationSet(OperationSetAdvancedAutoAnswer.class); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setAllLocalResults() {\n TreeMap<FlworKey, List<FlworTuple>> keyValuePairs = mapExpressionsToOrderedPairs();\n // get only the values(ordered tuples) and save them in a list for next() calls\n keyValuePairs.forEach((key, valueList) -> valueList.forEach((value) -> _localTupleResult...
[ "0.5513905", "0.52143645", "0.5204237", "0.5074531", "0.5066268", "0.50197536", "0.49704373", "0.49553788", "0.49146914", "0.48916295", "0.48560306", "0.4846781", "0.4845485", "0.4829025", "0.4826332", "0.48230824", "0.4819353", "0.48172453", "0.4812357", "0.48063022", "0.479...
0.5032846
5
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof PresenceEtudiantPK)) { return false; } PresenceEtudiantPK other = (PresenceEtudiantPK) object; if (this.nbrJour != other.nbrJour) { return false; } if (this.idEtudiant != ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.64778...
0.0
-1
TODO Autogenerated method stub
public void keyTyped(KeyEvent arg0) { }
{ "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